This is a migrated thread and some comments may be shown as answers.

Changing RadRibbonBackstageItem Icon size

4 Answers 86 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
arto
Top achievements
Rank 1
arto asked on 24 Jun 2014, 11:03 PM
Hi,

Is there a way to change RadRibbonBackstageItem Icon size?
I have my RadRibbonBackstageItem Icons set with 32x32 png files, but they show up as 16x16 images (screenshot attached). Doesn't matter what size png I set those with the backstage seems to always come up with 16x16.

My backstage items look like this:
<telerik:RadRibbonBackstageItem Header="New" Icon="Images/New32.png" telerik:KeyTipService.AccessText="N"/>

thanks!

4 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 27 Jun 2014, 10:08 AM
Hi Arto,

The Icon property is template bound to a native Image element in the ControlTemplate of the RadRibbonBackstageItem. This image has MaxWidth and MaxHeight properties set to 16px and this is the reason behind the reported behavior. 

In order to alter this you can extract the ControlTemplate of the RadRibbonBackstageItem and slightly modify it. Basically you can find the Image with x:Name set to "Image" and change its MaxWidth and MaxHeight properties. For your convenience I attached a project with the modified style. 

Please let me know if you need any further assistance.

Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
arto
Top achievements
Rank 1
answered on 27 Jun 2014, 10:20 PM
Thanks Martin, this is what I needed.
But where can I get the style for the Summer theme? I'm using summer and don't want to switch to office, and the solution you've sent is with office.

Arto
0
arto
Top achievements
Rank 1
answered on 27 Jun 2014, 10:57 PM
got the template from C:\Program Files (x86)\Telerik\UI for WPF Q1 2014\Themes.Implicit\WPF40\Summer\Themes
I assume this is the correct location, right?
0
Accepted
Martin Ivanov
Telerik team
answered on 30 Jun 2014, 07:15 AM
Hello Arto,

Indeed, the Summer theme styles are located in the folder that you assumed in your last reply. For more information about extracting styles and templates you can see the Editing Control Templates help article.

Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
RibbonView and RibbonWindow
Asked by
arto
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
arto
Top achievements
Rank 1
Share this question
or