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
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class PopupExtensions
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. |