Summary
Defines in what direction a popup should be positioned, relative to the anchor point of
the parent.
- Namespace
- Avalonia
.Controls .Primitives .PopupPositioning - Containing Type
- Popup
Positioner Parameters
Syntax
public PopupGravity Gravity { get; set; }
Remarks
If a corner gravity is specified (e.g. 'BottomRight' or 'TopLeft'), then the popup will
be placed towards the specified gravity; otherwise, the popup will be centered over the
anchor point on any axis that had no gravity specified.
Value
Type | Description |
---|---|
PopupGravity |