Close(Object) Method
Closes a dialog window with the specified result.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public void Close(
Object? dialogResult
)
Public Sub Close (
dialogResult As Object
)
member Close :
dialogResult : Object -> unit
Parameters
- Object
- The dialog result.
Remarks
When the window is shown with the ShowDialog(TResult)(Window) or ShowDialog(TResult)(Window) method, the resulting task will produce the _dialogResult value when the window is closed.