# IChoiceDialogService interface

Shows a dialog with an arbitrary set of buttons and returns the result of the pressed one.

```csharp
public interface IChoiceDialogService
```

## Members

| name | description |
| --- | --- |
| [Show&lt;T&gt;](IChoiceDialogService/Show.md)(…) | Shows a modal dialog with the given choices. |

## Remarks

Complements [`IMessageBoxService`](./IMessageBoxService.md), which supports only fixed button sets (Ok/OkCancel/YesNo/AbortRetryIgnore/RetryCancel) and returns [`DialogResult`](./DialogResult.md). This service is meant for cases where button captions are defined by application code, for example "Show log" / "Close". The owner window is resolved by the underlying [`IDialogService`](./IDialogService.md) through `IWindowsManager`, so it does not have to be specified here.

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
