Skip to main content

ShowDialog<TResult>(Window) Method

Shows the window as a dialog.

Definition

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

public Task<TResult> ShowDialog<TResult>(
Window owner
)

Parameters

  Window
The dialog's owner window.

Type Parameters

The type of the result produced by the dialog.

Return Value

Task(TResult)
. A task that can be used to retrieve the result of the dialog when it closes.

See Also

Reference

Window Class
ShowDialog Overload
Avalonia.Controls Namespace