Prism and DataTemplates

Topics: Prism v4 - WPF 4
Apr 28, 2015 at 1:29 PM

Want propose you to add tools for DataTemplate DI.
Example project here:

Main idea is create 2 additional classes PrismDataTemplate and PrismHierarchicalDataTemplate which use Service locator to inject View into any ContentControl(ItemsControl) dynamically.
Apr 28, 2015 at 3:15 PM
Not sure I understand what problem this is trying to solve. With the combination of an implicit DataTemplate containing the View and the View using ViewModelLocator, you can already get dependency injection into the ViewModel easily. And with Regions you can inject views into containers. So I'm curious what scenarios this approach solves that cannot already be easily accomplished with existing Prism functionality.