Skip to content

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.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices

Declaration

public virtual void Ok(object parameter)

Parameters

name type description
parameter object The command parameter supplied by the button. Unused by the base implementation.

See Also

Used in articles