CAB's UIExtensionSite alternative

Jan 11, 2009 at 4:05 PM
Hello, is there any planned alternative to CAB's UIExtensionSite? Thanks!
Jan 12, 2009 at 3:33 PM

Hi,

 

This behavior is not planned to be implemented in future releases of Prism-v2. Anyway, feel free to add this requirement to the Issue Tracker, in this way, the community can vote for it, and the team may consider it for futures releases.

 

If you want to implement something like CAB’s UIExtensionSite, a possible path could be creating a region where you host a control, like a ToolBar, and access to it from the different modules in your code to add the menus in it.

When you add the different subitems in the menus, you can take advantage of Commanding to keep your code clear and loosely coupled.

Due to the power in WPF’s templating capabilities, you could even add ICommand instances to a region and apply DataTemplates to them in order to include them in menus and/or toolbars with a UI defined centrally in the Shell.

 

Perhaps, you may find useful the following topics into the Prism-v2 documentation:

·         How to: Add a Region

·         How to: Show a View in a Shell Region

·         Commanding QuickStart

 

Please, let me know if this helps.

 

Ezequiel Sculli

http://blogs.southworks.net/esculli/

Jan 13, 2009 at 2:46 PM
Thanks Ezequiel, I've added the item
http://www.codeplex.com/CompositeWPF/WorkItem/View.aspx?WorkItemId=3593
Aug 4, 2010 at 12:11 PM

Hi,

For those interested, I've created a UIExtensionSite-like mechanism for PRISM.

You can download the code at CodeProject (cfr http://www.codeproject.com/KB/silverlight/UIExtensionSites.aspx).

Xavier Spileers