Skip to content

DialogButtonViewModel.CreateApply method

Creates the Apply button, captioned in the current UI language. It applies the changes without closing the dialog, so it is neither the default nor the cancel button.

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

Declaration

public static IDialogButtonViewModel CreateApply(ICommand command, object? commandParameter = null)

Parameters

name type description
command ICommand The command invoked when the button is pressed.
commandParameter object? The value passed to command.

Returns

type description
IDialogButtonViewModel The button view model.

See Also