# OkCancelDialogAwareViewModel.Cancel method

Handles the Cancel button. The base implementation closes the dialog with Cancel; override it to discard pending changes first.

```csharp
public virtual void Cancel(object parameter)
```

| parameter | description |
| --- | --- |
| parameter | The command parameter supplied by the button. Unused by the base implementation. |

## See Also

* class [OkCancelDialogAwareViewModel](../OkCancelDialogAwareViewModel.md)
* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.ApplicationServices.dll -->
