PopupPositionerParametersGravity Property
Defines in what direction a popup should be positioned, relative to the anchor point of
the parent.
Namespace: Avalonia.Controls.Primitives.PopupPositioningAssembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public PopupGravity Gravity { get; set; }
Public Property Gravity As PopupGravity
Get
Set
member Gravity : PopupGravity with get, set
Property Value
PopupGravity
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.