# ConfirmActionDialog.InitializeComponent method

Wires up the controls and optionally loads XAML markup and attaches dev tools (if Avalonia.Diagnostics package is referenced).

**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 void InitializeComponent(bool loadXaml = true)
```

## Parameters

| name | type | description |
| --- | --- | --- |
| loadXaml | `bool` | Should the XAML be loaded into the component. |

## See Also

* class [ConfirmActionDialog](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/ConfirmActionDialog/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 -->
