# DialogChoice&lt;T&gt; class

A single choice in a dialog: the button caption and the result returned when it is pressed.

```csharp
public sealed class DialogChoice<T>
```

| parameter | description |
| --- | --- |
| T | The result type. |

## Public Members

| name | description |
| --- | --- |
| [DialogChoice](DialogChoice-1/DialogChoice.md)(…) | Initializes a new instance of the [`DialogChoice`](./DialogChoice-1.md) class. |
| [Caption](DialogChoice-1/Caption.md) { get; } | The button caption. |
| [Dock](DialogChoice-1/Dock.md) { get; set; } | The side the button is docked to. |
| [Index](DialogChoice-1/Index.md) { get; set; } | The button order within its side. |
| [IsCancel](DialogChoice-1/IsCancel.md) { get; set; } | The cancel button, invoked by Escape. |
| [IsDefault](DialogChoice-1/IsDefault.md) { get; set; } | The default button, invoked by Enter. |
| [Result](DialogChoice-1/Result.md) { get; } | The result returned when the button is pressed. |

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
