# OkCancelDialogAwareViewModel.Ok method

Handles the OK button. The base implementation closes the dialog with Ok; override it to commit the entered data first, and skip the base call to keep the dialog open.

```csharp
public virtual void Ok(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 -->
