Skip to main content

PopupGravity Enum

Definition

Assembly:Avalonia.Controls
Package:Avalonia

Defines the direction in which a popup will open.

public enum PopupGravity

Inheritance: Enum -> PopupGravity

Fields

NameDescription
BottomThe popup will be positioned below the anchor edge
BottomLeftThe popup will be positioned to the bottom-left of the anchor edge
BottomRightThe popup will be positioned to the bottom-right of the anchor edge
LeftThe popup will be positioned to the left of the anchor edge
NoneThe popup will be centered over the anchor edge.
RightThe popup will be positioned to the right of the anchor edge
TopThe popup will be positioned above the anchor edge
TopLeftThe popup will be positioned to the top-left of the anchor edge
TopRightThe popup will be positioned to the top-right of the anchor edge

Bottom Field

The popup will be positioned below the anchor edge

public Avalonia.Controls.Primitives.PopupPositioning.PopupGravity Bottom

BottomLeft Field

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

public Avalonia.Controls.Primitives.PopupPositioning.PopupGravity BottomLeft

BottomRight Field

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

public Avalonia.Controls.Primitives.PopupPositioning.PopupGravity BottomRight

Left Field

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

public Avalonia.Controls.Primitives.PopupPositioning.PopupGravity Left

None Field

The popup will be centered over the anchor edge.

public Avalonia.Controls.Primitives.PopupPositioning.PopupGravity None

Right Field

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

public Avalonia.Controls.Primitives.PopupPositioning.PopupGravity Right

Top Field

The popup will be positioned above the anchor edge

public Avalonia.Controls.Primitives.PopupPositioning.PopupGravity Top

TopLeft Field

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

public Avalonia.Controls.Primitives.PopupPositioning.PopupGravity TopLeft

TopRight Field

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

public Avalonia.Controls.Primitives.PopupPositioning.PopupGravity TopRight