Window.

Close(object) Method

Summary

Closes a dialog window with the specified result.
Namespace
Avalonia.Controls
Containing Type
Window

Syntax

public void Close(object dialogResult)

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.

Parameters

Name Type Description
dialogResult object The dialog result.

Return Value

Type Description
void