I have a MainWindow
which consists of several UserControls
.
Currently, I have one God ViewModel.cs
which is defined at MainWindow
level and does the job for all the UserControls.
Now I feel that this is not the right way to do it. Maybe I should have separate viewmodels for each of the user controls, right? But my problem is how to interact between these? Let's say some event happens in usercontrol1 which changes something in usercontrol2's viewmodel?