Set the DataContext of a ViewModel in MVVMLight
问题 I've got a question of the MVVM-Pattern. So I'm not sure, that I've had understand it completely. My scenario: ViewModelLocator : Provide the requested ViewModel to a specified view. LoginViewModel: ViewModel for the LoginView MainPageViewModel: ViewModel for the MainPageView My example app. is simple: The user can login and comes to the MainPageView. The MainPageView uses the MainPageViewModel. I use the messenger of the MVVMLight framework to navigate from the LoginView to the MainPageView.