PopupGravity Enumeration

Defines the direction in which a popup will open.

Definition

Namespace: Avalonia.Controls.Primitives.PopupPositioning
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
C#
[FlagsAttribute]
public enum PopupGravity

Members

None0 The popup will be centered over the anchor edge.
Top1 The popup will be positioned above the anchor edge
Bottom2 The popup will be positioned below the anchor edge
Left4 The popup will be positioned to the left of the anchor edge
TopLeft5 The popup will be positioned to the top-left of the anchor edge
BottomLeft6 The popup will be positioned to the bottom-left of the anchor edge
Right8 The popup will be positioned to the right of the anchor edge
TopRight9 The popup will be positioned to the top-right of the anchor edge
BottomRight10 The popup will be positioned to the bottom-right of the anchor edge

See Also