|
Hi,
I have implemented my own custom designer. Therefore I have also implemented my own version of a MenuCommandService which is inherited from MenuCommandService. In the constructor of my MenuCommandService I add new command:
public CustomMenuCommandService(IServiceProvider serviceProvider) : base(serviceProvider) { MenuCommand escapeCommand = new MenuCommand(new EventHandler(ExecuteEscape), MenuCommands.KeyCancel); base.AddCommand(escapeCommand);
MenuCommand undoCommand = new MenuCommand(new EventHandler(ExecuteUndo), StandardCommands.Undo); base.AddCommand(undoCommand);
MenuCommand redoCommand = new MenuCommand(new EventHandler(ExecuteRedo), StandardCommands.Redo); base.AddCommand(redoCommand);
.......... and so on
After the BeginLoad call of the surface I get the following exception:
There is already a command handler for the menu command '5efc7975-14bc-11cf-9b2b-00aa00573819 : 15'.
I think this is because I added new MenuCommands - but how can I fix that issue - any ideas??
Cheers, Franz
|