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)
- C#
- VB
- F#
[FlagsAttribute]
public enum PopupPositionerConstraintAdjustment
<FlagsAttribute>
Public Enumeration PopupPositionerConstraintAdjustment
[<FlagsAttribute>]
type 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
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. |
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. |
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. |
ResizeX | 16 | Horizontally resize the surface |
ResizeY | 32 | Vertically resize the surface |
All | 63 |