Skip to main content

PopupGravity Enumeration

Defines the direction in which a popup will open.

Definition

Namespace: Avalonia.Controls.Primitives.PopupPositioning
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

[FlagsAttribute]
public enum PopupGravity

Members

None0The popup will be centered over the anchor edge.
Top1The popup will be positioned above the anchor edge
Bottom2The popup will be positioned below the anchor edge
Left4The popup will be positioned to the left of the anchor edge
TopLeft5The popup will be positioned to the top-left of the anchor edge
BottomLeft6The popup will be positioned to the bottom-left of the anchor edge
Right8The popup will be positioned to the right of the anchor edge
TopRight9The popup will be positioned to the top-right of the anchor edge
BottomRight10The popup will be positioned to the bottom-right of the anchor edge

See Also

Reference

Avalonia.Controls.Primitives.PopupPositioning Namespace