PopupPositionerConstraintAdjustment Enumeration

Defines how a popup position will be adjusted if the unadjusted position would result in the popup being partly constrained.

Definition

Namespace: Avalonia.Controls.Primitives.PopupPositioning
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
C#
[FlagsAttribute]
public enum PopupPositionerConstraintAdjustment

Remarks

Whether a popup is considered 'constrained' is left to the positioner to determine. For example, the popup may be partly outside the target platform defined 'work area', thus necessitating the popup's position be adjusted until it is entirely inside the work area.

Members

None0 Don't alter the surface position even if it is constrained on some axis, for example partially outside the edge of an output.
SlideX1 Slide the surface along the x axis until it is no longer constrained.
SlideY2 Slide the surface along the y axis until it is no longer constrained.
FlipX4 Invert the anchor and gravity on the x axis if the surface is constrained on the x axis.
FlipY8 Invert the anchor and gravity on the y axis if the surface is constrained on the y axis.
ResizeX16 Horizontally resize the surface
ResizeY32 Vertically resize the surface
All63 

See Also