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.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
[SuppressMessage("Microsoft.Design", "CA1053:StaticHolderTypesShouldNotHaveConstructors")]
public class PopupExtensions

Inheritance: objectPopupExtensions

Fields

IsOpenProperty

Identifies the IsOpen attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsOpenProperty

Field Value

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

cs-api-definition
public static readonly DependencyProperty OwnerProperty

Field Value

DependencyProperty

PlacementProperty

Identifies the Placement attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty PlacementProperty

Field Value

DependencyProperty

PlacementRectangleProperty

Identifies the PlacementRectangle attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty PlacementRectangleProperty

Field Value

DependencyProperty

PlacementTargetProperty

Identifies the PlacementTarget attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty PlacementTargetProperty

Field Value

DependencyProperty

StaysOpenProperty

Identifies the StaysOpen attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty StaysOpenProperty

Field Value

DependencyProperty

Methods

GetIsOpen(DependencyObject)

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

Declaration

cs-api-definition
public static bool GetIsOpen(DependencyObject obj)

Parameters

obj

DependencyObject

The corresponding popup.

Returns

bool

A value indicating whether the Popup is open or not.

GetOwner(DependencyObject)

Gets the owner of the Popup.

Declaration

cs-api-definition
public static FrameworkElement GetOwner(DependencyObject obj)

Parameters

obj

DependencyObject

The corresponding popup.

Returns

FrameworkElement

The owner of the Popup.

GetPlacement(DependencyObject)

Gets a value describing the PlacementMode of the Popup.

Declaration

cs-api-definition
public static PlacementMode GetPlacement(DependencyObject obj)

Parameters

obj

DependencyObject

The corresponding popup.

Returns

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

cs-api-definition
public static Rect GetPlacementRectangle(DependencyObject obj)

Parameters

obj

DependencyObject

The corresponding popup.

Returns

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

cs-api-definition
public static UIElement GetPlacementTarget(DependencyObject obj)

Parameters

obj

DependencyObject

The corresponding popup.

Returns

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

cs-api-definition
public static bool GetStaysOpen(DependencyObject obj)

Parameters

obj

DependencyObject

The corresponding popup.

Returns

bool

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

SetIsOpen(DependencyObject, bool)

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

Declaration

cs-api-definition
public static void SetIsOpen(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

The corresponding popup.

value

bool

A value indicating whether the Popup is open or not.

SetOwner(DependencyObject, UIElement)

Sets the owner of the Popup.

Declaration

cs-api-definition
public static void SetOwner(DependencyObject obj, UIElement value)

Parameters

obj

DependencyObject

The corresponding popup.

value

UIElement

The owner of the Popup.

SetPlacement(DependencyObject, PlacementMode)

Sets a value describing the PlacementMode of the Popup.

Declaration

cs-api-definition
public static void SetPlacement(DependencyObject obj, PlacementMode value)

Parameters

obj

DependencyObject

The corresponding popup.

value

PlacementMode

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

cs-api-definition
public static void SetPlacementRectangle(DependencyObject obj, Rect value)

Parameters

obj

DependencyObject

The corresponding popup.

value

Rect

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

cs-api-definition
public static void SetPlacementTarget(DependencyObject obj, UIElement value)

Parameters

obj

DependencyObject

The corresponding popup.

value

UIElement

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

SetStaysOpen(DependencyObject, bool)

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

Declaration

cs-api-definition
public static void SetStaysOpen(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

The corresponding popup.

value

bool

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