Class PopupPlacement
Represents an attached behavior that can be used to adjust popup according to placement and boundaries.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.dll
Syntax
public class PopupPlacement : DependencyObject
Constructors
PopupPlacement()
Declaration
public PopupPlacement()
Fields
ClickedOutsidePopupEvent
Identifies the ClickedOutsidePopup routed event.
Declaration
public static readonly RoutedEvent ClickedOutsidePopupEvent
Field Value
RoutedEvent
|
HorizontalOffsetProperty
Identifies HorizontalOffset dependency property.
Declaration
public static readonly DependencyProperty HorizontalOffsetProperty
Field Value
System.Windows.DependencyProperty
|
IsOpenProperty
Identifies IsOpen dependency property.
Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
System.Windows.DependencyProperty
|
MousePositionProperty
Identifies the MousePosition routed event.
Declaration
public static readonly DependencyProperty MousePositionProperty
Field Value
System.Windows.DependencyProperty
|
OpenedEvent
Identifies the Opened routed event.
Declaration
public static readonly RoutedEvent OpenedEvent
Field Value
RoutedEvent
|
PlacementProperty
Identifies Placement dependency property.
Declaration
public static readonly DependencyProperty PlacementProperty
Field Value
System.Windows.DependencyProperty
|
PlacementRectangleProperty
Identifies PlacementRectangle dependency property.
Declaration
public static readonly DependencyProperty PlacementRectangleProperty
Field Value
System.Windows.DependencyProperty
|
PlacementTargetProperty
Identifies PlacementTarget dependency property.
Declaration
public static readonly DependencyProperty PlacementTargetProperty
Field Value
System.Windows.DependencyProperty
|
PopupPlacementProperty
Identifies the PopupPlacement attached dependency property.
Declaration
public static readonly DependencyProperty PopupPlacementProperty
Field Value
System.Windows.DependencyProperty
|
StaysOpenProperty
Identifies StaysOpenProperty dependency property.
Declaration
public static readonly DependencyProperty StaysOpenProperty
Field Value
System.Windows.DependencyProperty
|
VerticalOffsetProperty
Identifies VerticalOffset dependency property.
Declaration
public static readonly DependencyProperty VerticalOffsetProperty
Field Value
System.Windows.DependencyProperty
|
Properties
ActualPlacement
Gets the placement mode of the popup after boundary detection. This property is Obsolete.
Declaration
public PlacementMode ActualPlacement { get; }
Property Value
PlacementMode
|
AnimateFromBottom
Gets value that specify if animation should slide from the opposite direction.
Declaration
public bool AnimateFromBottom { get; }
Property Value
System.Boolean
|
AnimateFromRight
Gets value that specify if animation should slide from the opposite direction.
Declaration
public bool AnimateFromRight { get; }
Property Value
System.Boolean
|
CursorSize
Gets or sets the Cursor size.
Declaration
public static Size CursorSize { get; set; }
Property Value
System.Windows.Size
|
HorizontalOffset
Gets or sets the horizontal offset for the popup.
Declaration
public double HorizontalOffset { get; set; }
Property Value
System.Double
|
IsOpen
Gets or sets the IsOpen property for the popup.
Declaration
public bool IsOpen { get; set; }
Property Value
System.Boolean
|
MousePosition
Gets or sets the mouse position. This is global mouse position and should be relative to null (e.g. mouseEventArgs.GetPosition(null)).
Declaration
public Nullable<Point> MousePosition { get; set; }
Property Value
System.Nullable<System.Windows.Point>
|
Placement
Gets or sets the placement of the popup.
Declaration
public PlacementMode Placement { get; set; }
Property Value
PlacementMode
|
PlacementRectangle
Gets or sets the placement rectangle for the popup.
Declaration
public Rect PlacementRectangle { get; set; }
Property Value
System.Windows.Rect
|
PlacementTarget
Gets or sets the placement target for the popup.
Declaration
public FrameworkElement PlacementTarget { get; set; }
Property Value
System.Windows.FrameworkElement
|
Popup
Gets the popup instance on which PopupPlacement is attached.
Declaration
public Popup Popup { get; }
Property Value
System.Windows.Controls.Primitives.Popup
|
StaysOpen
Gets or sets a value that indicates whether the Popup control closes when the control is no longer in focus.
Declaration
public bool StaysOpen { get; set; }
Property Value
System.Boolean
|
VerticalOffset
Gets or sets the vertical offset for the popup.
Declaration
public double VerticalOffset { get; set; }
Property Value
System.Double
|
Methods
add_ClickedOutsidePopup(RadRoutedEventHandler)
Declaration
public void add_ClickedOutsidePopup(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler
value
|
add_Opened(RadRoutedEventHandler)
Declaration
public void add_Opened(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler
value
|
GetPopupPlacement(DependencyObject)
Gets the value of the PopupPlacement attached property for a dependency object.
Declaration
public static PopupPlacement GetPopupPlacement(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
The element from which the property value is read. |
Returns
PopupPlacement
The PopupPlacement property value for the dependency object. |
remove_ClickedOutsidePopup(RadRoutedEventHandler)
Declaration
public void remove_ClickedOutsidePopup(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler
value
|
remove_Opened(RadRoutedEventHandler)
Declaration
public void remove_Opened(RadRoutedEventHandler value)
Parameters
RadRoutedEventHandler
value
|
RepositionDeferred()
Reposition the popup after one layout cycle.
Declaration
public void RepositionDeferred()
RepositionImmediate()
Reposition the popup immediately.
Declaration
public void RepositionImmediate()
SetPopupPlacement(DependencyObject, PopupPlacement)
Sets the value of the PopupPlacement attached property to a specified element.
Declaration
public static void SetPopupPlacement(DependencyObject obj, PopupPlacement value)
Parameters
System.Windows.DependencyObject
obj
The element to which the attached property is written. |
PopupPlacement
value
The needed PopupPlacement value. |
Events
ClickedOutsidePopup
Occurs when there is a mouse click outside the popup.
Declaration
public event RadRoutedEventHandler ClickedOutsidePopup
Event Type
RadRoutedEventHandler
|
Opened
Occurs when popup is opened and positioned.
Declaration
public event RadRoutedEventHandler Opened
Event Type
RadRoutedEventHandler
|