I’ve been wondering for a long time how to solve this problem with toolbars and menus for my Prism based application. This will be a very large application with lots of different functionality which is why it is important to get this right.
I need a menu with common items such as Exit (File) and Cut, Copy, Paste, Undo, Redo (Edit), etc. The same goes for the toolbar, where there’s a main toolbar with buttons for the same functionality.
For example the Save command has to be specific for the current active view, and only that. How would you handle this?
Now depending on the module, I need buttons that have common functionality for all views in that module. So when a view in a module gets requested, these buttons are added to the main toolbar, and when no more views from that module are active, the buttons
are removed. Note that this is still the main toolbar – not a new toolbar in the same tray. How can I handle this adding and removing of buttons to the main toolbar? This main toolbar is defined in the Shell (with the buttons mentioned above).
Buttons that a very view-specific will be shown in their own toolbar so they should not be a problem.
I really hope that someone can help me see the solutions to these problems as they are a very important feature in our application.
Thank you very much!
View Complete Post