New to Telerik UI for WPFStart a free 30-day trial

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.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class PopupExtensions

Inheritance: objectPopupExtensions

Fields

IsOpenProperty

DependencyProperty

Identifies the IsOpen attached property.

C#
public static readonly DependencyProperty IsOpenProperty

OwnerProperty

DependencyProperty

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.

C#
public static readonly DependencyProperty OwnerProperty

PlacementProperty

DependencyProperty

Identifies the Placement attached property.

C#
public static readonly DependencyProperty PlacementProperty

PlacementRectangleProperty

DependencyProperty

Identifies the PlacementRectangle attached property.

C#
public static readonly DependencyProperty PlacementRectangleProperty

PlacementTargetProperty

DependencyProperty

Identifies the PlacementTarget attached property.

C#
public static readonly DependencyProperty PlacementTargetProperty

StaysOpenProperty

DependencyProperty

Identifies the StaysOpen attached property.

C#
public static readonly DependencyProperty StaysOpenProperty

Methods

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

C#
public static bool GetIsOpen(DependencyObject obj)
Parameters:objDependencyObject

The corresponding popup.

Returns:

bool

A value indicating whether the Popup is open or not.

Gets the owner of the Popup.

C#
public static FrameworkElement GetOwner(DependencyObject obj)
Parameters:objDependencyObject

The corresponding popup.

Returns:

FrameworkElement

The owner of the Popup.

Gets a value describing the PlacementMode of the Popup.

C#
public static PlacementMode GetPlacement(DependencyObject obj)
Parameters:objDependencyObject

The corresponding popup.

Returns:

PlacementMode

A value describing the PlacementMode of the Popup.

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

C#
public static Rect GetPlacementRectangle(DependencyObject obj)
Parameters:objDependencyObject

The corresponding popup.

Returns:

Rect

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

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

C#
public static UIElement GetPlacementTarget(DependencyObject obj)
Parameters:objDependencyObject

The corresponding popup.

Returns:

UIElement

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

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

C#
public static bool GetStaysOpen(DependencyObject obj)
Parameters:objDependencyObject

The corresponding popup.

Returns:

bool

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

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

C#
public static void SetIsOpen(DependencyObject obj, bool value)
Parameters:objDependencyObject

The corresponding popup.

valuebool

A value indicating whether the Popup is open or not.

Sets the owner of the Popup.

C#
public static void SetOwner(DependencyObject obj, UIElement value)
Parameters:objDependencyObject

The corresponding popup.

valueUIElement

The owner of the Popup.

Sets a value describing the PlacementMode of the Popup.

C#
public static void SetPlacement(DependencyObject obj, PlacementMode value)
Parameters:objDependencyObject

The corresponding popup.

valuePlacementMode

A value describing the PlacementMode of the Popup.

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

C#
public static void SetPlacementRectangle(DependencyObject obj, Rect value)
Parameters:objDependencyObject

The corresponding popup.

valueRect

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

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

C#
public static void SetPlacementTarget(DependencyObject obj, UIElement value)
Parameters:objDependencyObject

The corresponding popup.

valueUIElement

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

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

C#
public static void SetStaysOpen(DependencyObject obj, bool value)
Parameters:objDependencyObject

The corresponding popup.

valuebool

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