Table of Contents

Class CustomPopupPlacement

Namespace
Avalonia.Controls.Primitives.PopupPositioning
Assembly
Avalonia.Controls.dll

Defines custom placement parameters for a CustomPopupPlacementCallback callback.

public record CustomPopupPlacement : IEquatable<CustomPopupPlacement>
Inheritance
CustomPopupPlacement
Implements
Inherited Members

Constructors

CustomPopupPlacement(CustomPopupPlacement)

protected CustomPopupPlacement(CustomPopupPlacement original)

Parameters

original CustomPopupPlacement

Properties

Anchor

public PopupAnchor Anchor { get; set; }

Property Value

PopupAnchor

AnchorRectangle

public Rect AnchorRectangle { get; set; }

Property Value

Rect

ConstraintAdjustment

public PopupPositionerConstraintAdjustment ConstraintAdjustment { get; set; }

Property Value

PopupPositionerConstraintAdjustment

EqualityContract

protected virtual Type EqualityContract { get; }

Property Value

Type

Gravity

public PopupGravity Gravity { get; set; }

Property Value

PopupGravity

Offset

public Point Offset { get; set; }

Property Value

Point

PopupSize

The Size of the Popup control.

public Size PopupSize { get; }

Property Value

Size

Target

Placement target of the popup.

public Visual Target { get; }

Property Value

Visual

Methods

Equals(CustomPopupPlacement?)

public virtual bool Equals(CustomPopupPlacement? other)

Parameters

other CustomPopupPlacement

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected virtual bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(CustomPopupPlacement?, CustomPopupPlacement?)

public static bool operator ==(CustomPopupPlacement? left, CustomPopupPlacement? right)

Parameters

left CustomPopupPlacement
right CustomPopupPlacement

Returns

bool

operator !=(CustomPopupPlacement?, CustomPopupPlacement?)

public static bool operator !=(CustomPopupPlacement? left, CustomPopupPlacement? right)

Parameters

left CustomPopupPlacement
right CustomPopupPlacement

Returns

bool