# IMessageBoxService interface

Shows standard message boxes — a short piece of text, an icon and a fixed set of buttons — from view model code that must not reference any window type.

```csharp
public interface IMessageBoxService
```

## Members

| name | description |
| --- | --- |
| [Show](IMessageBoxService/Show.md)(…) | Shows a modal message box owned by the specified window. (2 methods) |

## Remarks

Use [`IChoiceDialogService`](./IChoiceDialogService.md) instead when the button captions are defined by the application rather than chosen from [`MessageBoxButtons`](../Eremex.AvaloniaUI.Controls/MessageBoxButtons.md).

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
