MVVM - How to create a ViewModelLocater

added by dwhittaker
7/19/2011 2:58:42 PM

127 Views

Taking a look at how we can create a simple ViewModelLocator to inject our ViewModel into our DataContext at runtime via conventions. The ViewModelLocator Pattern will allow you to create a very flexable application because it will decouple your Views from your ViewModel. The approach in this episode will take a convention based approach to determine which ViewModel should go with a given View.


0 comments