# 194 - MVVM - How to create a ViewModelLocater

Level: Beginner
Tags: Silverlight MVVM
Derik Whittaker

This episode we are we are going to take 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.

Click here to Watch this Episode

Keep this site free. Click here to become a patreon!