# DialogAwareViewModel.CloseDialog method

Closes the dialog with Cancel, as if the user had cancelled it. The generated `CloseDialogCommand` property makes this available to bindings.

```csharp
public void CloseDialog()
```

## See Also

* class [DialogAwareViewModel](../DialogAwareViewModel.md)
* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.ApplicationServices.dll -->
