ShowDialog<TResult>(Window) Method
Shows the window as a dialog.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public Task<TResult> ShowDialog<TResult>(
Window owner
)
Public Function ShowDialog(Of TResult) (
owner As Window
) As Task(Of TResult)
member ShowDialog :
owner : Window -> Task<'TResult>
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