MVVM-Light Locator Pattern and Reusable UserControl
问题 I have an existing Silverlight 4 application that I am attempting to convert to use the locator pattern and the MVVM-Light library. My understanding is that the MvvmLocator class keeps a reference to each view model and allows you to bind the DataContext of each view to an appropriate ViewModel in the locator. My application uses a navigation frame and hence each page in the app is a UserControl that gets loaded into the Content frame. I can see how easy it is to bind each page view to the