skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class PopupExtensions

This class contains attached properties for the Popup class. These properties are meant to be used to fill the gaps between the WPF Popup class and the Silverlight one.

Inheritance
System.Object
PopupExtensions
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll

Syntax

public class PopupExtensions : Object

Fields

IsOpenProperty

Identifies the IsOpen attached property.

Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
System.Windows.DependencyProperty

OwnerProperty

Identifies the Owner attached property. This property is used to determine the Owner of the popup - the element that will be clickable when the StaysOpen attached property is set to false.

Declaration
public static readonly DependencyProperty OwnerProperty
Field Value
System.Windows.DependencyProperty

PlacementProperty

Identifies the Placement attached property.

Declaration
public static readonly DependencyProperty PlacementProperty
Field Value
System.Windows.DependencyProperty

PlacementRectangleProperty

Identifies the PlacementRectangle attached property.

Declaration
public static readonly DependencyProperty PlacementRectangleProperty
Field Value
System.Windows.DependencyProperty

PlacementTargetProperty

Identifies the PlacementTarget attached property.

Declaration
public static readonly DependencyProperty PlacementTargetProperty
Field Value
System.Windows.DependencyProperty

StaysOpenProperty

Identifies the StaysOpen attached property.

Declaration
public static readonly DependencyProperty StaysOpenProperty
Field Value
System.Windows.DependencyProperty

Methods

GetIsOpen(DependencyObject)

Gets a value indicating whether the Popup is open or not.

Declaration
public static bool GetIsOpen(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

Returns
System.Boolean

A value indicating whether the Popup is open or not.

GetOwner(DependencyObject)

Gets the owner of the Popup.

Declaration
public static FrameworkElement GetOwner(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

Returns
System.Windows.FrameworkElement

The owner of the Popup.

GetPlacement(DependencyObject)

Gets a value describing the PlacementMode of the Popup.

Declaration
public static PlacementMode GetPlacement(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

Returns
System.Windows.Controls.Primitives.PlacementMode

A value describing the PlacementMode of the Popup.

GetPlacementRectangle(DependencyObject)

Gets the rectangle relative to which the System.Windows.Controls.Primitives.Popup control is positioned when it opens.

Declaration
public static Rect GetPlacementRectangle(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

Returns
System.Windows.Rect

The rectangle relative to which the System.Windows.Controls.Primitives.Popup control is positioned when it opens.

GetPlacementTarget(DependencyObject)

Gets the element relative to which the System.Windows.Controls.Primitives.Popup is positioned when it opens.

Declaration
public static UIElement GetPlacementTarget(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

Returns
System.Windows.UIElement

The element relative to which the System.Windows.Controls.Primitives.Popup is positioned when it opens.

GetStaysOpen(DependencyObject)

Gets a value indicating whether the Popup stays open when clicking outside or not.

Declaration
public static bool GetStaysOpen(DependencyObject obj)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

Returns
System.Boolean

A value indicating whether the Popup stays open when clicking outside or not.

SetIsOpen(DependencyObject, Boolean)

Sets a value indicating whether the Popup is open or not.

Declaration
public static void SetIsOpen(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

System.Boolean value

A value indicating whether the Popup is open or not.

SetOwner(DependencyObject, UIElement)

Sets the owner of the Popup.

Declaration
public static void SetOwner(DependencyObject obj, UIElement value)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

System.Windows.UIElement value

The owner of the Popup.

SetPlacement(DependencyObject, PlacementMode)

Sets a value describing the PlacementMode of the Popup.

Declaration
public static void SetPlacement(DependencyObject obj, PlacementMode value)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

System.Windows.Controls.Primitives.PlacementMode value

A value describing the PlacementMode of the Popup.

SetPlacementRectangle(DependencyObject, Rect)

Sets the rectangle relative to which the System.Windows.Controls.Primitives.Popup control is positioned when it opens.

Declaration
public static void SetPlacementRectangle(DependencyObject obj, Rect value)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

System.Windows.Rect value

The rectangle relative to which the System.Windows.Controls.Primitives.Popup control is positioned when it opens.

SetPlacementTarget(DependencyObject, UIElement)

Sets the element relative to which the System.Windows.Controls.Primitives.Popup is positioned when it opens.

Declaration
public static void SetPlacementTarget(DependencyObject obj, UIElement value)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

System.Windows.UIElement value

The element relative to which the System.Windows.Controls.Primitives.Popup is positioned when it opens.

SetStaysOpen(DependencyObject, Boolean)

Sets a value indicating whether the Popup stays open when clicking outside or not.

Declaration
public static void SetStaysOpen(DependencyObject obj, bool value)
Parameters
System.Windows.DependencyObject obj

The corresponding popup.

System.Boolean value

A value indicating whether the Popup stays open when clicking outside or not.

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.