# DialogService class

The default IDialogService implementation. It hosts the view model in a [`DialogWindow`](./DialogWindow.md), attaches the view model for as long as the dialog is open, and picks the owner window through IWindowsManager.

```csharp
public class DialogService : IDialogService
```

## Public Members

| name | description |
| --- | --- |
| [DialogService](DialogService/DialogService.md)() | Legacy bridge for code that creates the service directly, without a container. Requires an initialized [`Current`](./ApplicationServicesContext/Current.md). |
| [DialogService](DialogService/DialogService.md)(…) | Primary constructor. Dependencies are passed explicitly, so the service can be created by any DI container and substituted in tests. |
| [ShowDialog&lt;T&gt;](DialogService/ShowDialog.md)(…) |  (2 methods) |

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.ApplicationServices.dll -->
