Problems with referencing resources.
Posted: 01 Aug 2019, 18:20
I'm not sure if I'm just doing this wrong or there's a problem with Noesis. I defined two elements in a resource dictionary and I'm trying to reference one in the other. I shortened a lot of the actual XAML for this post.
When importing this Unity seems to go in an infinite loop. If I understand correctly you'd need a DyanmicResource for the interdependencies in the Outer resource. Why would this cause an infinite loop?
Code: Select all
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Assets/Project/Views/Resources.xaml" />
</ResourceDictionary.MergedDictionaries>
<Grid x:Key="Inner" Height="60"/>
<Grid x:Key="Outer">
<ContentControl Content="{DynamicResource Inner}" />
</Grid>
</ResourceDictionary>
</UserControl.Resources>
<ContentControl Margin="5" Content="{DynamicResource Outer}" />
</UserControl>