RibbonGroup styling will not work

4 posts, 1 answers
  1. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 03 Aug 2012 Link to this post

    I am following your straight forward instructions on how to style the RibbonGroup within the RibbonView (http://www.telerik.com/help/silverlight/radribbonview-styling-ribbongroup.html)

    I just can't get this to work in Blend or Visual Studio, it ignores any colour changes I make to the borders of the RibbonGroup etc.

    I would post code but I am simply starting a new project, dropping the RibbonView in and creating a copy of the default style. Tried in Q1 2012 and Q2 2012.

    Please help.




  2. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 06 Aug 2012 Link to this post

    I'll explain what I'm trying to achieve here - I have the Windows7 theme set on the RibbonView but I want the RibbonGroups to be style like in the default theme (e.g rounded border all the around the group).

    Current Style

    Style of RibbonGroup border I want

    Please guide me on how to acheive this.
  3. DevCraft banner
  4. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 08 Aug 2012 Link to this post

    Hello Craig,

    You need to change the default style of the GroupChrome element defined in the RibbonGroup Template. As you're using the Windows7 theme, you need to use the GroupChrome style settings defined in the theme. This is why you can copy the entire RibbonView Windows7theme style and modify the GroupChrome ControlTemplate. You can also use implicit styles as described here or modify the built-in Windows7 theme settings as described here.

    I attached a sample solution demonstrating the first approach - I added a new ResourceDictionary which contains the Windows7 styles for all RibbonView elements and I modified it to apply borders in the GroupChrome control. Let me know if this helps.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Craig Mellon
    Craig Mellon avatar
    53 posts
    Member since:
    May 2005

    Posted 08 Aug 2012 Link to this post

    Thank you for the example project you attached - it solved my issue within minutes.


Back to Top