PopupPositionerParametersGravity 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) Version: 11.3.999
public PopupGravity Gravity { get; set; }

Property Value

PopupGravity

Remarks

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