PopupPositionerConstraintAdjustment Enum

Summary

Defines how a popup position will be adjusted if the unadjusted position would result in the popup being partly constrained.
Namespace
Avalonia.Controls.Primitives.PopupPositioning
Interfaces
  • IComparable
  • IFormattable
  • IConvertible
Base Types
  • object
  • ValueType
  • Enum
graph BT Type-->Base0["Enum"] Base0-->Base1["ValueType"] Base1-->Base2["object"] Type-.->Interface0["IComparable"] Type-.->Interface1["IFormattable"] Type-.->Interface2["IConvertible"] Type["PopupPositionerConstraintAdjustment"] class Type type-node

Syntax

[Flags]
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.

Attributes

Type Description
FlagsAttribute

Fields

Name Constant Value Summary
All 31
static
FlipX 4
Invert the anchor and gravity on the x axis if the surface is constrained on the x axis.
static
FlipY 8
Invert the anchor and gravity on the y axis if the surface is constrained on the y axis.
static
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.
static
ResizeX 16
Horizontally resize the surface
static
ResizeY 16
Vertically resize the surface
static
SlideX 1
Slide the surface along the x axis until it is no longer constrained.
static
SlideY 2
Slide the surface along the y axis until it is no longer constrained.
static

Extension Methods