Skip to main content

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)

[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

None0Don't alter the surface position even if it is constrained on some axis, for example partially outside the edge of an output.
SlideX1Slide the surface along the x axis until it is no longer constrained.
SlideY2Slide the surface along the y axis until it is no longer constrained.
FlipX4Invert the anchor and gravity on the x axis if the surface is constrained on the x axis.
FlipY8Invert the anchor and gravity on the y axis if the surface is constrained on the y axis.
ResizeX16Horizontally resize the surface
ResizeY32Vertically resize the surface
All63 

See Also

Reference

Avalonia.Controls.Primitives.PopupPositioning Namespace