WPF/MVVM:Set multiple datacontext to ONE usercontrol
- by msfanboy
Hello,
I have a UserControl with 5 small UserControl which are parts of the first UserControl.
The first UserControl is datatemplated by a MainViewModel type.
The other 5 small UserControls have also set the DataContext to this MainViewModel type.
Now I want additionally that those 5 UserControls get a 2nd DataContext to access other public
properties of another ViewModel .
How can I do that?