# 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.

**Namespace:** [`Eremex.AvaloniaUI.Controls.ApplicationServices`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)  
**Assembly:** `Eremex.Common.Contracts.dll`  
**NuGet Package:** [Eremex.Common.Contracts](https://www.nuget.org/packages/Eremex.Common.Contracts)

## Declaration

```csharp
public interface IMessageBoxService
```

## Methods

| name | description |
| --- | --- |
| [Show](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IMessageBoxService/Show/index.md)(…) | Shows a modal message box owned by the specified window. (2 methods) |

## Remarks

Use [`IChoiceDialogService`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IChoiceDialogService/index.md) instead when the button captions are defined by the application rather than chosen from [`MessageBoxButtons`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls/MessageBoxButtons/index.md).

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
