Doing something like this:
<DataTemplate DataType="{x:Type vm:AllCustomersViewModel}">
<vw:AllCustomersView />
</DataTemplate>
Works in a ResourceDictionary
for when I want to apply a ViewModel
to a UserControl
as root, but how do I the same thing when I have a UserControl
inside of a Page?``\ Would I create a
ResourceDictionaryfor all my Pages then at the top of each
Page` do something like:
<Page.Resources>
<ResourceDictionary Source="../MainWindowResources.xaml"/>
</Page.Resources>