Prism and DataTemplates

Topics: Prism v4 - WPF 4
Apr 28, 2015 at 12:29 PM
Hello!

Want propose you to add tools for DataTemplate DI.
Example project here: https://github.com/BlackGad/PrismDataTemplateExample

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 2: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.
Thanks
Brian