Skip to main content

PlacementMode Enum

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Defines the placement for a Avalonia.Controls.Primitives.Popup control.

public enum PlacementMode

Inheritance: Enum -> PlacementMode

Fields​

NameDescription
AnchorAndGravityThe popup is placed according to Avalonia.Controls.Primitives.Popup.PlacementAnchor and Avalonia.Controls.Primitives.Popup.PlacementGravity rules.
BottomPreferred location is below the target element.
BottomEdgeAlignedLeftPreferred location is below the target element, with the left edge of popup aligned with left edge of the target element.
BottomEdgeAlignedRightPreferred location is below the target element, with the right edge of popup aligned with right edge of the target element.
CenterPreferred location is centered over the target element.
CustomA position and repositioning behavior that is defined by the Avalonia.Controls.Primitives.Popup.CustomPopupPlacementCallback property.
LeftPreferred location is to the left of the target element.
LeftEdgeAlignedBottomPreferred location is to the left of the target element, with the bottom edge of popup aligned with bottom edge of the target element.
LeftEdgeAlignedTopPreferred location is to the left of the target element, with the top edge of popup aligned with top edge of the target element.
PointerThe popup is placed at the pointer position.
RightPreferred location is to the right of the target element.
RightEdgeAlignedBottomPreferred location is to the right of the target element, with the bottom edge of popup aligned with bottom edge of the target element.
RightEdgeAlignedTopPreferred location is to the right of the target element, with the top edge of popup aligned with top edge of the target element.
TopPreferred location is above the target element.
TopEdgeAlignedLeftPreferred location is above the target element, with the left edge of the popup aligned with the left edge of the target element.
TopEdgeAlignedRightPreferred location is above the target element, with the right edge of popup aligned with right edge of the target element.

AnchorAndGravity Field​

The popup is placed according to Avalonia.Controls.Primitives.Popup.PlacementAnchor and Avalonia.Controls.Primitives.Popup.PlacementGravity rules.

public Avalonia.Controls.PlacementMode AnchorAndGravity

Bottom Field​

Preferred location is below the target element.

public Avalonia.Controls.PlacementMode Bottom

BottomEdgeAlignedLeft Field​

Preferred location is below the target element, with the left edge of popup aligned with left edge of the target element.

public Avalonia.Controls.PlacementMode BottomEdgeAlignedLeft

BottomEdgeAlignedRight Field​

Preferred location is below the target element, with the right edge of popup aligned with right edge of the target element.

public Avalonia.Controls.PlacementMode BottomEdgeAlignedRight

Center Field​

Preferred location is centered over the target element.

public Avalonia.Controls.PlacementMode Center

Custom Field​

A position and repositioning behavior that is defined by the Avalonia.Controls.Primitives.Popup.CustomPopupPlacementCallback property.

public Avalonia.Controls.PlacementMode Custom

Left Field​

Preferred location is to the left of the target element.

public Avalonia.Controls.PlacementMode Left

LeftEdgeAlignedBottom Field​

Preferred location is to the left of the target element, with the bottom edge of popup aligned with bottom edge of the target element.

public Avalonia.Controls.PlacementMode LeftEdgeAlignedBottom

LeftEdgeAlignedTop Field​

Preferred location is to the left of the target element, with the top edge of popup aligned with top edge of the target element.

public Avalonia.Controls.PlacementMode LeftEdgeAlignedTop

Pointer Field​

The popup is placed at the pointer position.

public Avalonia.Controls.PlacementMode Pointer

Right Field​

Preferred location is to the right of the target element.

public Avalonia.Controls.PlacementMode Right

RightEdgeAlignedBottom Field​

Preferred location is to the right of the target element, with the bottom edge of popup aligned with bottom edge of the target element.

public Avalonia.Controls.PlacementMode RightEdgeAlignedBottom

RightEdgeAlignedTop Field​

Preferred location is to the right of the target element, with the top edge of popup aligned with top edge of the target element.

public Avalonia.Controls.PlacementMode RightEdgeAlignedTop

Top Field​

Preferred location is above the target element.

public Avalonia.Controls.PlacementMode Top

TopEdgeAlignedLeft Field​

Preferred location is above the target element, with the left edge of the popup aligned with the left edge of the target element.

public Avalonia.Controls.PlacementMode TopEdgeAlignedLeft

TopEdgeAlignedRight Field​

Preferred location is above the target element, with the right edge of popup aligned with right edge of the target element.

public Avalonia.Controls.PlacementMode TopEdgeAlignedRight