Implicit DataTemplates
Posted: 07 Apr 2021, 23:57
I just tried to add DataTemplates for Views in a ResourceDIctionary like this:
In WPF that works fine, yet Unity Noesis complains that I cannot add a DataTemplate to a ResourceDictionary without specifying a key.
This is an issue. Implicitly used DataTemplates are supposed to be used this way. Why do I need to specifiy a key? This is another inconsistency between WPF and Noesis
that gets in the way of the Blend + Noesis workflow.
Code: Select all
<DataTemplate DataType="{x:Type vm:MyViewModel}">
<v:MyView />
</DataTemplate
This is an issue. Implicitly used DataTemplates are supposed to be used this way. Why do I need to specifiy a key? This is another inconsistency between WPF and Noesis
that gets in the way of the Blend + Noesis workflow.