Noesis 3.1.x Resource Dictionary Syntax
Posted: 31 Dec 2021, 20:39
I'm seeing unstylized content (pink) throughout my UIs. In 3.0.x I maintained a resource dictionary with the following merged dictionaries:
Resources.xaml
In 3.1.2, I'm referencing these XAML files via the pack URI syntax and it is not finding the integrated XAML. Any suggestions on what the correct approach might be?
Errors:
[NOESIS/E] Assets/User Interface/Resources.xaml(4): Xaml not found '/Noesis.GUI.Extensions;component/Theme/NoesisTheme.DarkBlue.xaml'
[NOESIS/E] Assets/User Interface/Resources.xaml(6): Xaml not found '/Noesis.GUI.Extensions;component/Theme/NoesisTheme.Styles.xaml'
My Noesis settings specify the above Resources.xaml file as the Application Resources file.
Resources.xaml
Code: Select all
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<ResourceDictionary.MergedDictionaries>
<!-- Noesis 3.0.x -->
<ResourceDictionary Source="/Assets/NoesisGUI/Theme/NoesisTheme.Brushes.DarkBlue.xaml" />
<ResourceDictionary Source="/Assets/NoesisGUI/Theme/NoesisTheme.Fonts.xaml" />
<ResourceDictionary Source="/Assets/NoesisGUI/Theme/NoesisTheme.Styles.xaml" />
<ResourceDictionary Source="ResourcesImages.xaml"/>
<ResourceDictionary Source="ResourcesCommon.xaml"/>
<ResourceDictionary Source="ResourcesTheme.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>Code: Select all
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<ResourceDictionary.MergedDictionaries>
<!-- Noesis 3.1.2 -->
<ResourceDictionary Source="pack://application:,,,/Noesis.GUI.Extensions;component/Theme/NoesisTheme.DarkBlue.xaml" />
<ResourceDictionary Source="pack://application:,,,/Noesis.GUI.Extensions;component/Theme/NoesisTheme.Styles.xaml" />
<ResourceDictionary Source="ResourcesImages.xaml"/>
<ResourceDictionary Source="ResourcesCommon.xaml"/>
<ResourceDictionary Source="ResourcesTheme.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>[NOESIS/E] Assets/User Interface/Resources.xaml(4): Xaml not found '/Noesis.GUI.Extensions;component/Theme/NoesisTheme.DarkBlue.xaml'
[NOESIS/E] Assets/User Interface/Resources.xaml(6): Xaml not found '/Noesis.GUI.Extensions;component/Theme/NoesisTheme.Styles.xaml'
My Noesis settings specify the above Resources.xaml file as the Application Resources file.