Skip to content

DialogButtonViewModel.CreateClose method

Creates the Close button, captioned in the current UI language and activated by Escape. Use it instead of Cancel in dialogs that only display information and have nothing to cancel.

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

Declaration

public static IDialogButtonViewModel CreateClose(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