Overwriting main menu actions

Stimulsoft Reports.WPF discussion
Post Reply
Dan Popa
Posts: 1
Joined: Mon Feb 27, 2012 11:01 am

Overwriting main menu actions

Post 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.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Overwriting main menu actions

Post 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.
Post Reply