Skip to main content

Anchor Property

Defines the anchor point for the anchor rectangle.

Definition

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

public PopupAnchor Anchor { get; set; }

Property Value

PopupAnchor

Remarks

The specified anchor is used derive an anchor point that the popup will be positioned relative to. If a corner anchor is set (e.g. 'TopLeft' or 'BottomRight'), the anchor point will be at the specified corner; otherwise, the derived anchor point will be centered on the specified edge, or in the center of the anchor rectangle if no edge is specified.

See Also

Reference

PopupPositionerParameters Structure
Avalonia.Controls.Primitives.PopupPositioning Namespace