# 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`](./IDialogAwareViewModel/ButtonsSource.md).

```csharp
public interface IDialogButtonViewModel
```

## Members

| name | description |
| --- | --- |
| [ButtonType](IDialogButtonViewModel/ButtonType.md) { get; } | The kind of control rendered for this entry: a push button or a check box. |
| [Caption](IDialogButtonViewModel/Caption.md) { get; } | The text shown on the button. |
| [Classes](IDialogButtonViewModel/Classes.md) { 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](IDialogButtonViewModel/Command.md) { get; } | The command invoked when the button is pressed. A button with no command is inert. |
| [CommandParameter](IDialogButtonViewModel/CommandParameter.md) { get; } | The value passed to [`Command`](./IDialogButtonViewModel/Command.md) when the button is pressed. |
| [Dock](IDialogButtonViewModel/Dock.md) { get; } | The side of the dialog footer the button is docked to. |
| [Index](IDialogButtonViewModel/Index.md) { 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](IDialogButtonViewModel/IsCancel.md) { get; } | `true` when this is the cancel button, activated by Escape. |
| [IsDefault](IDialogButtonViewModel/IsDefault.md) { get; } | `true` when this is the default button, activated by Enter. |

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
