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 ResourceDictionary for all my Pages then at the top of each Page do something like:
<Page.Resources>
<ResourceDictionary Source="../MainWindowResources.xaml"/>
</Page.Resources>
Any help is greatly appreciated, thanks!