IDialogButtonViewModel interface¶
Describes a single button in a dialog footer: what it looks like, where it sits, and what it does when pressed. A dialog exposes its buttons through ButtonsSource.
Members¶
| name | description |
|---|---|
| ButtonType { get; } | The kind of control rendered for this entry: a push button or a check box. |
| Caption { get; } | The text shown on the button. |
| Classes { get; } | Space-separated style classes applied to the button, used to give it a distinct appearance such as the accent style of a primary action. |
| Command { get; } | The command invoked when the button is pressed. A button with no command is inert. |
| CommandParameter { get; } | The value passed to Command when the button is pressed. |
| Dock { get; } | The side of the dialog footer the button is docked to. |
| Index { get; } | The position of the button among the buttons docked to the same side, in ascending order. null leaves the button in its declaration order. |
| IsCancel { get; } | true when this is the cancel button, activated by Escape. |
| IsDefault { get; } | true when this is the default button, activated by Enter. |