PlacementMode Enum
Definition
Defines the placement for a Avalonia.Controls.Primitives.Popup control.
public enum PlacementMode
Fields
| Name | Description |
|---|---|
| AnchorAndGravity | The popup is placed according to Avalonia.Controls.Primitives.Popup.PlacementAnchor and Avalonia.Controls.Primitives.Popup.PlacementGravity rules. |
| Bottom | Preferred location is below the target element. |
| BottomEdgeAlignedLeft | Preferred location is below the target element, with the left edge of popup aligned with left edge of the target element. |
| BottomEdgeAlignedRight | Preferred location is below the target element, with the right edge of popup aligned with right edge of the target element. |
| Center | Preferred location is centered over the target element. |
| Custom | A position and repositioning behavior that is defined by the Avalonia.Controls.Primitives.Popup.CustomPopupPlacementCallback property. |
| Left | Preferred location is to the left of the target element. |
| LeftEdgeAlignedBottom | Preferred location is to the left of the target element, with the bottom edge of popup aligned with bottom edge of the target element. |
| LeftEdgeAlignedTop | Preferred location is to the left of the target element, with the top edge of popup aligned with top edge of the target element. |
| Pointer | The popup is placed at the pointer position. |
| Right | Preferred location is to the right of the target element. |
| RightEdgeAlignedBottom | Preferred location is to the right of the target element, with the bottom edge of popup aligned with bottom edge of the target element. |
| RightEdgeAlignedTop | Preferred location is to the right of the target element, with the top edge of popup aligned with top edge of the target element. |
| Top | Preferred location is above the target element. |
| TopEdgeAlignedLeft | Preferred location is above the target element, with the left edge of the popup aligned with the left edge of the target element. |
| TopEdgeAlignedRight | Preferred 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