Summary
Shows the window as a dialog.
- Namespace
- Avalonia
.Controls - Containing Type
- Window
Syntax
public Task<TResult> ShowDialog<TResult>(Window owner)
Type Parameters
Name | Description |
---|---|
TResult | The type of the result produced by the dialog. |
Parameters
Name | Type | Description |
---|---|---|
owner | Window | The dialog's owner window. |
Return Value
Type | Description |
---|---|
Task |
. A task that can be used to retrieve the result of the dialog when it closes. |