Offset Property
Specify the popup position offset relative to the position of the anchor on the anchor rectangle and the anchor on the popup.
Definition
Namespace: Avalonia.Controls.Primitives.PopupPositioning
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public Point Offset {
get;
set; }
Public Property Offset As Point
Get
Set
member Offset : Point with
get, set
Property Value
PointRemarks
For example if the anchor of the anchor rectangle is at (x, y), the popup has the gravity bottom|right, and the offset is (ox, oy), the calculated surface position will be (x + ox, y + oy). The offset position of the surface is the one used for constraint testing. See set_constraint_adjustment. An example use case is placing a popup menu on top of a user interface element, while aligning the user interface element of the parent surface with some user interface element placed somewhere in the popup.
See Also
Reference
PopupPositionerParameters Structure
Avalonia.Controls.Primitives.PopupPositioning Namespace