Skip to main content

CustomPopupPlacement Class

Definition​

Assembly:Avalonia.Controls
Package:Avalonia

Defines custom placement parameters for a Avalonia.Controls.Primitives.PopupPositioning.CustomPopupPlacementCallback callback.

public class CustomPopupPlacement

Inheritance: object -> CustomPopupPlacement

Implements: IEquatable<CustomPopupPlacement>

Methods​

NameDescription
<Clone>$No summary available.
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.

<Clone>$ Method​

public Avalonia.Controls.Primitives.PopupPositioning.CustomPopupPlacement <Clone>$()

Returns​

Avalonia.Controls.Primitives.PopupPositioning.CustomPopupPlacement

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Controls.Primitives.PopupPositioning.CustomPopupPlacement other)
Parameters​

other Avalonia.Controls.Primitives.PopupPositioning.CustomPopupPlacement

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

ToString Method​

public string ToString()

Returns​

string

Properties​

NameDescription
AnchorNo summary available.
AnchorRectangleNo summary available.
ConstraintAdjustmentNo summary available.
DeflateGets or sets how far to deflate Avalonia.Controls.Primitives.PopupPositioning.CustomPopupPlacement.PopupSize when positioning the popup.
GravityNo summary available.
OffsetNo summary available.
PopupSizeThe Avalonia.Size of the Avalonia.Controls.Primitives.Popup control.
TargetPlacement target of the popup.

Anchor Property​

public Avalonia.Controls.Primitives.PopupPositioning.PopupAnchor Anchor { get; set; }

AnchorRectangle Property​

public Avalonia.Rect AnchorRectangle { get; set; }

ConstraintAdjustment Property​

public Avalonia.Controls.Primitives.PopupPositioning.PopupPositionerConstraintAdjustment ConstraintAdjustment { get; set; }

Deflate Property​

Gets or sets how far to deflate Avalonia.Controls.Primitives.PopupPositioning.CustomPopupPlacement.PopupSize when positioning the popup.

public Avalonia.Thickness Deflate { get; set; }

Remarks​

This is normally set to the margin of the popup's child. This allows out-of-bounds effects like drop shadows to be drawn without affecting the final position of the child.

Gravity Property​

public Avalonia.Controls.Primitives.PopupPositioning.PopupGravity Gravity { get; set; }

Offset Property​

public Avalonia.Point Offset { get; set; }

PopupSize Property​

The Avalonia.Size of the Avalonia.Controls.Primitives.Popup control.

public Avalonia.Size PopupSize { get; set; }

Target Property​

Placement target of the popup.

public Avalonia.Visual Target { get; set; }