Overwriting main menu actions
Posted: Mon Feb 27, 2012 11:16 am
Hello,
I integrated the Report Designer into an existing WPF Browser Application. How can I overwrite the Exit action from the Main Menu?
An alernative would be to add a new button in the Ribbon Quick Launch menu (a go back action):
StiWpfMainMenuService mainMenuService = StiWpfMainMenuService.GetService();
mainMenuService.AddRootMenuItem("miBack", "Back", new RoutedEventHandler(toolButton_Click));
or
mainMenuService.AddMenuItem("miBack", "Back", "Back", new RoutedEventHandler(toolButton_Click));
but it does not work.
Thank you.
I integrated the Report Designer into an existing WPF Browser Application. How can I overwrite the Exit action from the Main Menu?
An alernative would be to add a new button in the Ribbon Quick Launch menu (a go back action):
StiWpfMainMenuService mainMenuService = StiWpfMainMenuService.GetService();
mainMenuService.AddRootMenuItem("miBack", "Back", new RoutedEventHandler(toolButton_Click));
or
mainMenuService.AddMenuItem("miBack", "Back", "Back", new RoutedEventHandler(toolButton_Click));
but it does not work.
Thank you.