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:
public class PopupExtensions
Inheritance: objectPopupExtensions
Fields
IsOpenProperty
DependencyProperty
Identifies the IsOpen attached property.
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.
public static readonly DependencyProperty OwnerProperty
PlacementProperty
DependencyProperty
Identifies the Placement attached property.
public static readonly DependencyProperty PlacementProperty
PlacementRectangleProperty
DependencyProperty
Identifies the PlacementRectangle attached property.
public static readonly DependencyProperty PlacementRectangleProperty
PlacementTargetProperty
DependencyProperty
Identifies the PlacementTarget attached property.
public static readonly DependencyProperty PlacementTargetProperty
StaysOpenProperty
DependencyProperty
Identifies the StaysOpen attached property.
public static readonly DependencyProperty StaysOpenProperty
Methods
Gets a value indicating whether the Popup is open or not.
public static bool GetIsOpen(DependencyObject obj)
The corresponding popup.
Returns:A value indicating whether the Popup is open or not.
GetOwner(DependencyObject)
FrameworkElement
Gets the owner of the Popup.
public static FrameworkElement GetOwner(DependencyObject obj)
The corresponding popup.
Returns:FrameworkElement
The owner of the Popup.
GetPlacement(DependencyObject)
PlacementMode
Gets a value describing the PlacementMode of the Popup.
public static PlacementMode GetPlacement(DependencyObject obj)
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.
public static Rect GetPlacementRectangle(DependencyObject obj)
The corresponding popup.
Returns:Rect
The rectangle relative to which the System.Windows.Controls.Primitives.Popup control is positioned when it opens.
GetPlacementTarget(DependencyObject)
UIElement
Gets the element relative to which the System.Windows.Controls.Primitives.Popup is positioned when it opens.
public static UIElement GetPlacementTarget(DependencyObject obj)
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.
public static bool GetStaysOpen(DependencyObject obj)
The corresponding popup.
Returns:A value indicating whether the Popup stays open when clicking outside or not.
Sets a value indicating whether the Popup is open or not.
public static void SetIsOpen(DependencyObject obj, bool value)
The corresponding popup.
valueboolA value indicating whether the Popup is open or not.
Sets the owner of the Popup.
public static void SetOwner(DependencyObject obj, UIElement value)
The corresponding popup.
valueUIElementThe owner of the Popup.
Sets a value describing the PlacementMode of the Popup.
public static void SetPlacement(DependencyObject obj, PlacementMode value)
The corresponding popup.
valuePlacementModeA 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.
public static void SetPlacementRectangle(DependencyObject obj, Rect value)
The corresponding popup.
valueRectThe 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.
public static void SetPlacementTarget(DependencyObject obj, UIElement value)
The corresponding popup.
valueUIElementThe 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.
public static void SetStaysOpen(DependencyObject obj, bool value)
The corresponding popup.
valueboolA value indicating whether the Popup stays open when clicking outside or not.