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

ApplicationButton Content (text) Color

1 Answer 79 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
developer
Top achievements
Rank 2
developer asked on 21 May 2013, 10:23 PM
I'm using Expression Blend and I'm editing my ApplicationButtonStyle.  I cannot figure out how to change the color of the text inside the Grid that contains the ContentPresenter, TextBlock, and Image.  Changing the Background/Foreground colors in TextBlock or ContentPresenter doesn't work.  What I'm trying to do is have my ApplicationButton tab look the same as a RadRibbonTab, but I can't figure out the Context (or text) color part.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 22 May 2013, 08:56 AM
Hi Kevin,

Once you edit the default style of the RibbonView ApplicationButton, you can apply a Foreground setter. This setter will control the foreground of the content inside the button. Next, you can change the value of the Background setter - this value is applied to the inner Border element that represents the background of the ApplicaitonButton. And you can further customize the settings of the outer and inner Border elements (the first elements in the root Grid of the ControlTemplate) to create a RibbonTab-like style.

I attached a sample solution where I slightly modified the RibbonView ApplicationButton style so that now the button resembles a selected RibbonTab. Please have a look at the solution and let me know if it helps.

Regards,
Tina Stancheva
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RibbonView and RibbonWindow
Asked by
developer
Top achievements
Rank 2
Answers by
Tina Stancheva
Telerik team
Share this question
or