Control different DataContext
问题 Control different DataContext in WPF As I can deploy multiple DataContext in different tabs and control which is the current DataContext I'm using Mvvm Light WPF4 i have the different ViewModels, View but i dont know how to handle multiples DataContext and control the current DataContext for change on tab switch Edit: I've got an approach to the solution as follows: Create a ViewModel for the MainView The tabcontrol source is a ObservableCollection Each TabItem has its own DataContext The