WindowShowDialogTResult(Window) Method

Shows the window as a dialog.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public Task<TResult> ShowDialog<TResult>(
	Window owner
)

Parameters

owner  Window
The dialog's owner window.

Type Parameters

TResult
The type of the result produced by the dialog.

Return Value

TaskTResult
. A task that can be used to retrieve the result of the dialog when it closes.

See Also