Skip to main content

PopupPositionerParameters Structure

Unstable.

Note: This API is unstable and may change in a future release.

Provides positioning parameters to IPopupPositioner.

Definition

Namespace: Avalonia.Controls.Primitives.PopupPositioning
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

[UnstableAttribute("This API may be removed in Avalonia 12. If you depend on this API, please open an issue with details of your use-case.")]
public struct PopupPositionerParameters : IEquatable<PopupPositionerParameters>
InheritanceObjectValueType → PopupPositionerParameters
ImplementsIEquatable(PopupPositionerParameters)

Remarks

The IPopupPositioner provides a collection of rules for the placement of a popup relative to its parent. Rules can be defined to ensure the popup remains within the visible area's borders, and to specify how the popup changes its position, such as sliding along an axis, or flipping around a rectangle. These positioner-created rules are constrained by the requirement that a popup must intersect with or be at least partially adjacent to its parent surface.

Properties

AnchorDefines the anchor point for the anchor rectangle.
AnchorRectangleSpecifies the anchor rectangle within the parent that the popup will be placed relative to, in device-independent pixels.
ConstraintAdjustmentSpecify how the popup should be positioned if the originally intended position caused the popup to be constrained.
GravityDefines in what direction a popup should be positioned, relative to the anchor point of the parent.
OffsetSpecify the popup position offset relative to the position of the anchor on the anchor rectangle and the anchor on the popup.
SizeSet the size of the popup that is to be positioned with the positioner object, in device- independent pixels.

Methods

GetType()Gets the Type of the current instance.
(Inherited from Object)

See Also

Reference

Avalonia.Controls.Primitives.PopupPositioning Namespace