Skip to main content

ShowDialog(Window) Method

Shows the window as a dialog.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

public Task ShowDialog(
Window owner
)

Parameters

  Window
The dialog's owner window.

Return Value

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

Exceptions

InvalidOperationExceptionThe window has already been closed.

See Also

Reference

Window Class
ShowDialog Overload
Avalonia.Controls Namespace