Summary
Invert the anchor and gravity on the y axis if the surface is constrained on the y axis.
- Namespace
- Avalonia
.Controls .Primitives .PopupPositioning - Containing Type
- Popup
Positioner Constraint Adjustment
Syntax
FlipY
Remarks
For example, if the bottom edge of the surface is constrained, the gravity is 'bottom'
and the anchor is 'bottom', change the gravity to 'top' and the anchor to 'top'.
The adjusted position is calculated given the original anchor rectangle and offset, but
with the new flipped anchor and gravity values.
If the adjusted position also ends up being constrained, the resulting position of the
FlipY adjustment will be the one before the adjustment.
Constant Value
Value | Type |
---|---|
8 | Int32 |