Custom theming

Stimulsoft Reports.WPF discussion
Post Reply
saukun
Posts: 6
Joined: Wed Feb 23, 2011 10:22 am

Custom theming

Post by saukun »

Hi,

We are evaluating your controls and would like to replace your ribbon control with some third party ribbon control. Would it be possible? Can you provide styles for Office2003BlueTheme and Office2007BlueTheme to have starting point from where to start our customisation work, or at least to know what commands you are binding to ribbon controls.

Thanks,
Saulius
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Custom theming

Post by Andrew »

Hello,

Please the attached sample. This will make it clear.

Thank you.
Attachments
844.RibbonDesigner(Telerik).zip
(3.19 MiB) Downloaded 2090 times
saukun
Posts: 6
Joined: Wed Feb 23, 2011 10:22 am

Custom theming

Post by saukun »

Hi,

Thanks for sample, looks promising from begining. But is it possible to hide and top menu? and there seems exists some empty space between telerik ribbon and main menu it would be good to remove too.

As I understand 2007 theme is not supporting hiding of ribbon?

Thanks,
Saulius
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Custom theming

Post by Alex K. »

Hello,

Please see the modified sample in attachment.
Yes, 2007 theme is not supporting hiding.

Thank you.
Attachments
847.RibbonDesigner.zip
(3.78 MiB) Downloaded 337 times
saukun
Posts: 6
Joined: Wed Feb 23, 2011 10:22 am

Custom theming

Post by saukun »

Thanks for sample, one step further to success. But when you disabling main menu services, then not only hiding menu items but seems actions of these menu items can not be invoked too? I'm just clicked on Blank Report button in ribbon and got Object null ref exception. We need these actions to work because they will be implemented in ribbon. Any workaround?

Edit: Ok seems only first time clicking Object null ref exception occuring, and second time it opens new report. Any workaround?

Thanks,
Saulius
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Custom theming

Post by Alex K. »

Hello,

We made some improvements in that direction. Please check the latest build when it will be available.
And please use the following code:

Code: Select all

container = StiConfig.Services.GetServices(typeof(StiWpfMainMenuService));
StiWpfMainMenuService menuService = container[0] as StiWpfMainMenuService;
menuService.ShowEdit = false;
menuService.ShowFile = false;
menuService.ShowHelp = false;
menuService.ShowView = false;
instead:

Code: Select all

container = StiConfig.Services.GetServices(typeof(StiWpfMainMenuService));
foreach (StiService service in container)
{
    service.ServiceEnabled = false;
}
Thank you.
Post Reply