How to track down Xaml path errors?
Posted: 10 Oct 2019, 23:36
I have this line in my xaml:
I get the error:
The xaml calling NocturnalStyle works in VS Blend and in Kaxaml -- those design tool load the resource just fine. The file "NocturnalStyle" is in the same folder as the main xaml calling it. I also tried to put it in other places like where the VS project is or executable as well as putting an absolute path there, but Noesis never finds it. I re-wrote the line to be more explicit as well:
which also works in VS Blend, but not in Noesis (still can't find it).
The "Xaml provider not set" was fixed with the addition of:
but it still can't find NocturnalTheme.xaml.
I also tried:
which yielded the same results.
How do I fix this?
Code: Select all
<ResourceDictionary Source="NocturnalStyle.xaml"/>
Code: Select all
[NOESIS/I] 'NoesisTheme.xaml' loaded
[NOESIS/E] Xaml provider not set
[NOESIS/E] <memory>(13): Xaml not found 'NocturnalStyle.xaml'
Code: Select all
<ResourceDictionary Source="/IntegrationGLUT-blend;component/NocturnalStyle.xaml"/>
The "Xaml provider not set" was fixed with the addition of:
Code: Select all
GUI::SetXamlProvider(MakePtr<NoesisApp::LocalXamlProvider>(""));
I also tried:
Code: Select all
GUI::SetXamlProvider(MakePtr<NoesisApp::LocalXamlProvider>(""));
Noesis::Ptr<Noesis::Grid> main = Noesis::GUI::LoadXaml<Noesis::Grid>("../IntegrationGLUT-blend/UserControl1.xaml");
How do I fix this?