To debug xaml exception:debug
Visual Studio -> Debug -> Exception -> Common Language Runtime Exceptions it
// Standard XAML initialization
try
{
InitializeComponent();
}
catch (Exception e)
{
Debug.WriteLine(e.ToString());
}io
App.xaml.cs exception maybe because of Dependency Injection to Containersexception