DialogButtonViewModel.CreateCancel method¶
Creates the Cancel button, captioned in the current UI language and activated by Escape.
Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Avalonia.Controls.ApplicationServices.dll
NuGet Package: Eremex.Avalonia.Controls.ApplicationServices
Declaration¶
public static IDialogButtonViewModel CreateCancel(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¶
- class DialogButtonViewModel
- namespace Eremex.AvaloniaUI.Controls.ApplicationServices