# 194 - MVVM - How to create a ViewModelLocater

Date: 7/11/2011

Level: Beginner

Author: Derik Whittaker

Tags: Silverlight MVVM

Views: (404) Watched: (1175)

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