WindowClose(Object) Method

Closes a dialog window with the specified result.

Definition

Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
public void Close(
	Object? dialogResult
)

Parameters

dialogResult  Object
The dialog result.

Remarks

When the window is shown with the ShowDialogTResult(Window) or ShowDialogTResult(Window) method, the resulting task will produce the _dialogResult value when the window is closed.

See Also