Thanks for the reply.
I have one more scenario:)..
I have the same toolbar (with different buttons, like zoom etc.) As a part of childregion, I have multiple child items (of same type).
Now when I use Zoom button, I want only my active view (and its content) to get zoomed...
What should be the communication strategy here?I have considered two approaches here,
1. Using a Composite Command (like ZoomActiveCommand), which will have child ZoomCommands defined in each of the ViewModel (corresponding to each child views). I will zoom the view based on the IsActive flag (from IActiveAware interface implementation in
2. Use Event aggragator in execute handler of the Command attached to the Toolbar button. This event will be subscribed on my different ViewModel (corresponding to each child views). In subscriber, I will use same strategy as (1) [using IsActive flag] to
determine my active views and perform zoom.