Gravity Property
Defines in what direction a popup should be positioned, relative to the anchor point of the parent.
Definition
Namespace: Avalonia.Controls.Primitives.PopupPositioning
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public PopupGravity Gravity { get; set; }
Public Property Gravity As PopupGravity
Get
Set
member Gravity : PopupGravity with get, set
Property Value
PopupGravityRemarks
If a corner gravity is specified (e.g. 'BottomRight' or 'TopLeft'), then the popup will be placed towards the specified gravity; otherwise, the popup will be centered over the anchor point on any axis that had no gravity specified.
See Also
Reference
PopupPositionerParameters Structure
Avalonia.Controls.Primitives.PopupPositioning Namespace