Skip to main content

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)

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

Reference

PopupPositionerParameters Structure
Avalonia.Controls.Primitives.PopupPositioning Namespace