Extending menus from modules

Topics: Prism v4 - WPF 4
Feb 13, 2011 at 6:05 PM

Hi! is there a way to fill and extend menus? thanks!

Feb 14, 2011 at 2:55 AM

I use an IEventAggregator coupled with List<MenuItem> on the mainviewmodel for the Shell and from there I fired the event from the modules that need to register menuitem(s).  To order the menu contents correctly I use the Tag property and populate it with an Integer value for sorting purposes.

If you need a code example I can post that on request.



Jun 27, 2011 at 11:52 PM

Is it still possible for you, or anyone else reading, to post some sample code that can do this?

Thank you.

Jun 28, 2011 at 1:35 PM

Thanks Morgan.

I would appreciate a code sample as well