Table of Contents

Enum PopupGravity

Namespace
Avalonia.Controls.Primitives.PopupPositioning
Assembly
Avalonia.Controls.dll

Defines the direction in which a popup will open.

[Flags]
public enum PopupGravity

Fields

Bottom = 2

The popup will be positioned below the anchor edge

BottomLeft = Bottom | Left

The popup will be positioned to the bottom-left of the anchor edge

BottomRight = Bottom | Right

The popup will be positioned to the bottom-right of the anchor edge

Left = 4

The popup will be positioned to the left of the anchor edge

None = 0

The popup will be centered over the anchor edge.

Right = 8

The popup will be positioned to the right of the anchor edge

Top = 1

The popup will be positioned above the anchor edge

TopLeft = Top | Left

The popup will be positioned to the top-left of the anchor edge

TopRight = Top | Right

The popup will be positioned to the top-right of the anchor edge