# ConfirmDialogService.Show method (1 of 2)

**Namespace:** [`Eremex.AvaloniaUI.Controls.ApplicationServices`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)  
**Assembly:** `Eremex.Avalonia.Controls.ApplicationServices.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls.ApplicationServices](https://www.nuget.org/packages/Eremex.Avalonia.Controls.ApplicationServices)

## Declaration

```csharp
public DialogResult Show(string key, IEnumerable<string> messages, string title, 
    string? header = null, MessageBoxIcon icon = MessageBoxIcon.None, 
    MessageBoxButtons buttons = MessageBoxButtons.OkCancel)
```

## See Also

* class [ConfirmDialogService](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/ConfirmDialogService/index.md)
* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)

---

# ConfirmDialogService.Show&lt;TViewModel&gt; method (2 of 2)

**Namespace:** [`Eremex.AvaloniaUI.Controls.ApplicationServices`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)  
**Assembly:** `Eremex.Avalonia.Controls.ApplicationServices.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls.ApplicationServices](https://www.nuget.org/packages/Eremex.Avalonia.Controls.ApplicationServices)

## Declaration

```csharp
public DialogResult Show<TViewModel>(string key, TViewModel content, string title, 
    MessageBoxButtons buttons = MessageBoxButtons.OkCancel)
    where TViewModel : class
```

## See Also

* class [ConfirmDialogService](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/ConfirmDialogService/index.md)
* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.ApplicationServices.dll -->
