You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a minimal WinUI 3 desktop app written in C++, hosting a WinUI 3 runtime component written in C# to display the Community Toolkit DataGrid.
When attempting to declare the DataGrid in a XAML file, InitializeComponent fails with the WinRT error 0x802B000A: 'Cannot create instance of type Microsoft.UI.Xaml.Controls.XamlControlsResources'.
When loading the DataGrid in the code-behind, a System.TypeInitializationException occurs, with the internal exception being a NullReferenceException: 'Object reference not set to an instance of an object'.
Steps to reproduce the bug
However, our host application is written in winrt/c++, which means we have to load the components as external winui3-runtime components.
Expected behavior
WinRT Error and TypeInitializationException should not occur.
Screenshots
No response
NuGet package version
None
Windows version
No response
Additional context
Any suggestions for resolving this issue?
The text was updated successfully, but these errors were encountered:
Describe the bug
This is a minimal WinUI 3 desktop app written in C++, hosting a WinUI 3 runtime component written in C# to display the Community Toolkit DataGrid.
When attempting to declare the DataGrid in a XAML file, InitializeComponent fails with the WinRT error
0x802B000A
: 'Cannot create instance of typeMicrosoft.UI.Xaml.Controls.XamlControlsResources
'.When loading the DataGrid in the code-behind, a
System.TypeInitializationException
occurs, with the internal exception being aNullReferenceException
: 'Object reference not set to an instance of an object'.Steps to reproduce the bug
However, our host application is written in winrt/c++, which means we have to load the components as external winui3-runtime components.
Expected behavior
WinRT Error and TypeInitializationException should not occur.
Screenshots
No response
NuGet package version
None
Windows version
No response
Additional context
Any suggestions for resolving this issue?
The text was updated successfully, but these errors were encountered: