Bug in commands ?

Topics: CAB & Smart Client Software Factory
Aug 11, 2005 at 3:14 AM
originally posted by: krijn


Apparently there is no support for commands that register commands and events in the WorkItem scope. Every command is registered on the application scope (GlobalEventCatalog).

Different workitems cannot add a UIManager (uie://mainmenu for example) because the commandservice is global ?

It must be possible for registering multiple UIManagers because a workitem could start multiple (sub)workitems where each WorkItem (and subWorkitems) take care of there own UIManagers, menu's and commands.

I tried to start the MainForm twice in the CommandsQuickStart but no luck so far :
1. If I don't register the second UIManager then every MenuItem gets added twice (of course).
1. If I register a second UIManager for the second form (Uri name = WorkItem.Name) then every menuitem event is fired twice.