ClassPopupPlacement
Represents an attached behavior that can be used to adjust popup according to placement and boundaries.
Definition
Namespace:Telerik.UI.Xaml.Controls
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class PopupPlacement : DependencyObject
Inheritance: objectPopupPlacement
Constructors
PopupPlacement()
Declaration
public PopupPlacement()
Fields
ClickedOutsidePopupEvent
Identifies the ClickedOutsidePopup routed event.
Declaration
public static readonly RoutedEvent ClickedOutsidePopupEvent
Field Value
HorizontalOffsetProperty
Identifies HorizontalOffset dependency property.
Declaration
public static readonly DependencyProperty HorizontalOffsetProperty
Field Value
DependencyProperty
IsOpenProperty
Identifies IsOpen dependency property.
Declaration
public static readonly DependencyProperty IsOpenProperty
Field Value
DependencyProperty
MousePositionProperty
Identifies the MousePosition routed event.
Declaration
public static readonly DependencyProperty MousePositionProperty
Field Value
DependencyProperty
OpenedEvent
Identifies the Opened routed event.
Declaration
public static readonly RoutedEvent OpenedEvent
Field Value
PlacementProperty
Identifies Placement dependency property.
Declaration
public static readonly DependencyProperty PlacementProperty
Field Value
DependencyProperty
PlacementRectangleProperty
Identifies PlacementRectangle dependency property.
Declaration
public static readonly DependencyProperty PlacementRectangleProperty
Field Value
DependencyProperty
PlacementTargetProperty
Identifies PlacementTarget dependency property.
Declaration
public static readonly DependencyProperty PlacementTargetProperty
Field Value
DependencyProperty
PopupPlacementProperty
Identifies the PopupPlacement attached dependency property.
Declaration
public static readonly DependencyProperty PopupPlacementProperty
Field Value
DependencyProperty
StaysOpenProperty
Identifies StaysOpenProperty dependency property.
Declaration
public static readonly DependencyProperty StaysOpenProperty
Field Value
DependencyProperty
VerticalOffsetProperty
Identifies VerticalOffset dependency property.
Declaration
public static readonly DependencyProperty VerticalOffsetProperty
Field Value
DependencyProperty
Properties
AnimateFromBottom
Gets value that specify if animation should slide from the opposite direction.
AnimateFromRight
Gets value that specify if animation should slide from the opposite direction.
CursorSize
Gets or sets the Cursor size.
Declaration
public static Size CursorSize { get; set; }
Property Value
Size
HorizontalOffset
Gets or sets the horizontal offset for the popup.
IsOpen
Gets or sets the IsOpen property for the popup.
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 Point? MousePosition { get; set; }
Property Value
Point?
Placement
Gets or sets the placement of the popup.
Declaration
public PlacementMode Placement { get; set; }
Property Value
PlacementRectangle
Gets or sets the placement rectangle for the popup.
Declaration
public Rect PlacementRectangle { get; set; }
Property Value
Rect
PlacementTarget
Gets or sets the placement target for the popup.
Declaration
public FrameworkElement PlacementTarget { get; set; }
Property Value
FrameworkElement
Popup
Gets the popup instance on which PopupPlacement is attached.
Declaration
public Popup Popup { get; }
Property Value
Popup
StaysOpen
Gets or sets a value that indicates whether the Popup control closes when the control is no longer in focus.
VerticalOffset
Gets or sets the vertical offset for the popup.
Methods
GetPopupPlacement(DependencyObject)
Gets the value of the PopupPlacement attached property for a dependency object.
Declaration
public static PopupPlacement GetPopupPlacement(DependencyObject obj)
Parameters
obj
DependencyObject
The element from which the property value is read.
Returns
The PopupPlacement property value for the dependency object.
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
obj
DependencyObject
The element to which the attached property is written.
value
The needed PopupPlacement value.
Events
ClickedOutsidePopup
Occurs when there is a mouse click outside the popup.
Declaration
public event RadRoutedEventHandler ClickedOutsidePopup
Event Value
Opened
Occurs when popup is opened and positioned.
Declaration
public event RadRoutedEventHandler Opened
Event Value