Page 1 of 1

Overwriting main menu actions

Posted: Mon Feb 27, 2012 11:16 am
by Dan Popa
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.

Overwriting main menu actions

Posted: Tue Feb 28, 2012 3:14 am
by HighAley
Hello.
Dan wrote: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.
Unfortunately, you couldn't overwrite Exit action and change Ribbon interface.

Thank you.