Page 1 of 1
Custom theming
Posted: Wed Feb 23, 2011 10:27 am
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
Custom theming
Posted: Fri Feb 25, 2011 12:28 am
by Andrew
Hello,
Please the attached sample. This will make it clear.
Thank you.
Custom theming
Posted: Fri Feb 25, 2011 4:58 am
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
Custom theming
Posted: Fri Feb 25, 2011 6:56 am
by Alex K.
Hello,
Please see the modified sample in attachment.
Yes, 2007 theme is not supporting hiding.
Thank you.
Custom theming
Posted: Fri Feb 25, 2011 7:30 am
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
Custom theming
Posted: Tue Mar 01, 2011 5:04 am
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.