Static resource not found error
Posted: 14 Dec 2023, 22:38
Hello,
I am getting an error that a static resource can not be found when using it in a DataTemplate defined in another resource dictionary. But it still works fine.
I can fix this by moving the dictionary below. Is this normal?
Error:
No Error:
I am getting an error that a static resource can not be found when using it in a DataTemplate defined in another resource dictionary. But it still works fine.
I can fix this by moving the dictionary below. Is this normal?
Error:
Code: Select all
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:Phase1.Ui.Overlay.Converters">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="SkillInfoTemplates.xaml" />
<ResourceDictionary>
<converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
</ResourceDictionary>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
Code: Select all
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:converters="clr-namespace:Phase1.Ui.Overlay.Converters">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary>
<converters:BoolToVisibilityConverter x:Key="BoolToVisibilityConverter" />
</ResourceDictionary>
<ResourceDictionary Source="SkillInfoTemplates.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>