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

RibbonGroup styling will not work

3 Answers 89 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Craig Mellon
Top achievements
Rank 1
Craig Mellon asked on 03 Aug 2012, 01:34 PM
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.




3 Answers, 1 is accepted

Sort by
0
Craig Mellon
Top achievements
Rank 1
answered on 06 Aug 2012, 10:14 AM
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.
0
Accepted
Tina Stancheva
Telerik team
answered on 08 Aug 2012, 10:33 AM
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.

0
Craig Mellon
Top achievements
Rank 1
answered on 08 Aug 2012, 10:50 AM
Thank you for the example project you attached - it solved my issue within minutes.


Tags
RibbonView and RibbonWindow
Asked by
Craig Mellon
Top achievements
Rank 1
Answers by
Craig Mellon
Top achievements
Rank 1
Tina Stancheva
Telerik team
Share this question
or