Table of Contents

Enum PopupPositionerConstraintAdjustment

Namespace
Avalonia.Controls.Primitives.PopupPositioning
Assembly
Avalonia.Controls.dll

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

[Flags]
public enum PopupPositionerConstraintAdjustment

Fields

All = SlideX | SlideY | FlipX | FlipY | ResizeX | ResizeY
FlipX = 4

Invert the anchor and gravity on the x axis if the surface is constrained on the x axis.

FlipY = 8

Invert the anchor and gravity on the y axis if the surface is constrained on the y axis.

None = 0

Don't alter the surface position even if it is constrained on some axis, for example partially outside the edge of an output.

ResizeX = 16

Horizontally resize the surface

ResizeY = 32

Vertically resize the surface

SlideX = 1

Slide the surface along the x axis until it is no longer constrained.

SlideY = 2

Slide the surface along the y axis until it is no longer constrained.

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.