In Composite WPF (Prism), can/should multiple modules share a 'toolbar' region? -
I am very new to overall WPF and I am battling the basic architecture of shell.
Say I have Shell with three fields - 'OutlookStyleNav', 'Main' and 'Toolbar'.
How do I add buttons to the Toolbar area?
Will each module add its own buttons to this area? (And if so, how do the buttons of all modules be displayed on at the same time ?)
Should the shell detect its command dynamically in its controllers and its base But will the button create?
I'm not sure any suggestions?
Module in our current project publishes all available toolbars and menu actions and subscribe Toolbar In the event of "action available" events, a representative (which is pressed by the toolbar button), an action statement (= tooltip text), icon etc. is called.
This way there is no direct reliance on the shell, neither the module nor the module has dependency on the shell.
Comments
Post a Comment