Changing RadRibbonBackstageItem Icon size

5 posts, 1 answers
  1. arto
    arto avatar
    12 posts
    Member since:
    Jun 2014

    Posted 24 Jun 2014 Link to this post

    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!
  2. Martin
    Admin
    Martin avatar
    1099 posts

    Posted 27 Jun 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. arto
    arto avatar
    12 posts
    Member since:
    Jun 2014

    Posted 27 Jun 2014 in reply to Martin Link to this post

    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
  5. arto
    arto avatar
    12 posts
    Member since:
    Jun 2014

    Posted 27 Jun 2014 in reply to arto Link to this post

    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?
  6. Answer
    Martin
    Admin
    Martin avatar
    1099 posts

    Posted 30 Jun 2014 Link to this post

    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.
     
Back to Top
UI for WPF is Visual Studio 2017 Ready