# DialogWindow class

The window that hosts a view model shown through IDialogService or IWindowService. It renders Content in the body and the buttons of ButtonsSource in the footer, sizing itself to its content. The services create it for you; there is normally no reason to instantiate it directly.

```csharp
public class DialogWindow : MxWindow, IActionWindow
```

## Public Members

| name | description |
| --- | --- |
| [DialogWindow](DialogWindow/DialogWindow.md)() | Initializes a new instance of the [`DialogWindow`](./DialogWindow.md) class and loads its XAML. |
| [InitializeComponent](DialogWindow/InitializeComponent.md)(…) | Wires up the controls and optionally loads XAML markup and attaches dev tools (if Avalonia.Diagnostics package is referenced). |

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.ApplicationServices.dll -->
