Table of Contents

Method SetAlignedPosition

Namespace
Alternet.Maui
Assembly
Alternet.UI.Maui.dll

SetAlignedPosition(object?, HVAlignment?, AlignOrigin)

Sets the aligned position of the dialog within the specified layout using the provided alignment.

public virtual bool SetAlignedPosition(object? owner, HVAlignment? align, SimplePopupDialog.AlignOrigin origin = AlignOrigin.Owner)

Parameters

owner object

The view in which the dialog is to be aligned.

align HVAlignment?

The horizontal and vertical alignment to apply.

origin SimplePopupDialog.AlignOrigin

Specifies the origin point used for alignment calculations.

Returns

bool

True if the alignment was successfully applied; otherwise, false.

SetAlignedPosition(object?, HorizontalAlignment, VerticalAlignment, AlignOrigin)

Sets the aligned position of the dialog within the specified layout using the provided alignment.

public virtual bool SetAlignedPosition(object? owner, HorizontalAlignment horz, VerticalAlignment vert, SimplePopupDialog.AlignOrigin origin = AlignOrigin.Owner)

Parameters

owner object

The view in which the dialog is to be aligned.

horz HorizontalAlignment

The horizontal alignment to apply.

vert VerticalAlignment

The vertical alignment to apply.

origin SimplePopupDialog.AlignOrigin

Specifies the origin point used for alignment calculations.

Returns

bool

True if the alignment was successfully applied; otherwise, false.