[NOESIS/E] MainWindow.xaml(14,9): Unknown element type 'Component'
Posted: 04 Jul 2025, 12:07
I created simple <Component> element in separate xaml file with Noesis Studio and trying to use it in SDK.
Every changes I made in HelloWorld project in NoesisGUI-NativeSDK-win-3.2.7-Indie:
- I added testComponent.xaml in Data directory and add it to project with Custom Build step to generate embedded file .xaml.bin.h.
- I added that new testComponent.xaml.bin.h to EmbedeedXamlProvider
- Add <Component Source="testComponent.xaml"/> in MainWindow.xaml
- Get the result ERROR: [NOESIS/E] MainWindow.xaml(14,9): Unknown element type 'Component
I attached both screenshots with MainWindow.xaml testComponent.xaml and screenshot with changes in .cpp.
Every changes I made in HelloWorld project in NoesisGUI-NativeSDK-win-3.2.7-Indie:
- I added testComponent.xaml in Data directory and add it to project with Custom Build step to generate embedded file .xaml.bin.h.
- I added that new testComponent.xaml.bin.h to EmbedeedXamlProvider
- Add <Component Source="testComponent.xaml"/> in MainWindow.xaml
- Get the result ERROR: [NOESIS/E] MainWindow.xaml(14,9): Unknown element type 'Component
I attached both screenshots with MainWindow.xaml testComponent.xaml and screenshot with changes in .cpp.