PlacementMode Enumeration

Defines the placement for a Popup control.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public enum PlacementMode

Members

Pointer0 The popup is placed at the pointer position.
Bottom1 Preferred location is below the target element.
Right2 Preferred location is to the right of the target element.
Left3 Preferred location is to the left of the target element.
Top4 Preferred location is above the target element.
Center5 Preferred location is centered over the target element.
AnchorAndGravity6 The popup is placed according to PlacementAnchor and PlacementGravity rules.
TopEdgeAlignedLeft7 Preferred location is above the target element, with the left edge of the popup aligned with the left edge of the target element.
TopEdgeAlignedRight8 Preferred location is above the target element, with the right edge of popup aligned with right edge of the target element.
BottomEdgeAlignedLeft9 Preferred location is below the target element, with the left edge of popup aligned with left edge of the target element.
BottomEdgeAlignedRight10 Preferred location is below the target element, with the right edge of popup aligned with right edge of the target element.
LeftEdgeAlignedTop11 Preferred location is to the left of the target element, with the top edge of popup aligned with top edge of the target element.
LeftEdgeAlignedBottom12 Preferred location is to the left of the target element, with the bottom edge of popup aligned with bottom edge of the target element.
RightEdgeAlignedTop13 Preferred location is to the right of the target element, with the top edge of popup aligned with top edge of the target element.
RightEdgeAlignedBottom14 Preferred location is to the right of the target element, with the bottom edge of popup aligned with bottom edge of the target element.
Custom15 A position and repositioning behavior that is defined by the CustomPopupPlacementCallback property.

See Also