# IDialogService interface

Shows application dialogs from view model code, so that a view model can ask the user a question without referencing any window type. The view that hosts the view model is located through [`ViewLocatorAttribute`](./ViewLocatorAttribute.md), and the owner window is chosen by the implementation.

```csharp
public interface IDialogService
```

## Members

| name | description |
| --- | --- |
| [ShowDialog&lt;T&gt;](IDialogService/ShowDialog.md)(…) | Shows the view model in a modal dialog and returns once the user closes it. |

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
