WindowShowDialog(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 ShowDialog(
	Window owner
)

Parameters

owner  Window
The dialog's owner window.

Return Value

Task
A task that can be used to track the lifetime of the dialog.

Exceptions

InvalidOperationException The window has already been closed.

See Also