In my application I have several user controls in a window. These user controls need to communicate to each other. My approach is as below
- user control A fire a command which is to be handled by user control B.
- main window recieves the command and fire a command to B
- user control B handles the command.
My problem is how the main window can fire a command which can be handled in the VIEW MODEL of user control B?
Update:
SOLVED: One gloabl static RelayCommand for communication from the MainWindow to B and one Global RoutedCommand for communication from A to Main Window. Thank you for the responses.