Microsoft.UI.Xaml.Markup.XamlParseException
HResult=0x802B000A
Message=XAML parsing failed.
Source=WinRT.Runtime
StackTrace:
at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr)
at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)
at ABI.Microsoft.UI.Xaml.IApplicationStatics.global::Microsoft.UI.Xaml.IApplicationStatics.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
at Microsoft.UI.Xaml.Application.LoadComponent(Object component, Uri resourceLocator, ComponentResourceLocation componentResourceLocation)
at KlearTouchApp.MediaPlayer.WinUI.MainWindow.InitializeComponent() in C:\...\bld\KlearTouchApp.MediaPlayer.WinUI\obj\x64\Debug\net6.0-windows10.0.19041.0\win10-x64\MainWindow.g.i.cs:line 41
Steps to Reproduce
Replace:
https://github.com/KlearTouch/KlearTouch.MediaPlayer/blob/2ed0e62063a6145db68289faee3ddc9042d26ae1/samples/KlearTouchApp.MediaPlayer.WinUI/MainWindow.xaml#L9
With:
Actual Behavior
Exception generated at startup:
Workaround
Add it from the code-behind.