I am looking for some patterns and infrastructure for helping me manage state of buttons and menu items in a composite application.
I have a shared ribbon bar with shared commands
and each module injects additional button and menus
When an item is selected in a module I need to enable some shared items and disable others
What is the suggested approach?
My current thinking is the following
Every View Model which can handle commands from the ribbon bar will define those commands
The commands state implementation(CanExecute) will forward state management to the ribbon commands
through ashared service
Thanks in advance