Skip to main content

PlacementMode Enumeration

Defines the placement for a Popup control.

Definition

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

public enum PlacementMode
View Source

Members

Pointer0The popup is placed at the pointer position.
Bottom1Preferred location is below the target element.
Right2Preferred location is to the right of the target element.
Left3Preferred location is to the left of the target element.
Top4Preferred location is above the target element.
Center5Preferred location is centered over the target element.
AnchorAndGravity6The popup is placed according to PlacementAnchor and PlacementGravity rules.
TopEdgeAlignedLeft7Preferred location is above the target element, with the left edge of the popup aligned with the left edge of the target element.
TopEdgeAlignedRight8Preferred location is above the target element, with the right edge of popup aligned with right edge of the target element.
BottomEdgeAlignedLeft9Preferred location is below the target element, with the left edge of popup aligned with left edge of the target element.
BottomEdgeAlignedRight10Preferred location is below the target element, with the right edge of popup aligned with right edge of the target element.
LeftEdgeAlignedTop11Preferred location is to the left of the target element, with the top edge of popup aligned with top edge of the target element.
LeftEdgeAlignedBottom12Preferred location is to the left of the target element, with the bottom edge of popup aligned with bottom edge of the target element.
RightEdgeAlignedTop13Preferred location is to the right of the target element, with the top edge of popup aligned with top edge of the target element.
RightEdgeAlignedBottom14Preferred location is to the right of the target element, with the bottom edge of popup aligned with bottom edge of the target element.
Custom15A position and repositioning behavior that is defined by the CustomPopupPlacementCallback property.

See Also

Reference

Avalonia.Controls Namespace