Skip to main content

Close(Object) Method

Closes a dialog window with the specified result.

Definition

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

public void Close(
Object? dialogResult
)

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.

See Also

Reference

Window Class
Close Overload
Avalonia.Controls Namespace