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

how to change font colot of ribbon rab text.

1 Answer 65 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
raj
Top achievements
Rank 1
raj asked on 12 Dec 2011, 01:21 PM
Hi,
I am using Ribbon control and i have changed the theme, for the selected tab item font will be black with white background and for un selected tab i want to display text in white color at present it is in black, how can i change it ?
please check the attached screen shot and please look at red marked are.

thanks in advance.
 

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 15 Dec 2011, 03:29 PM
Hi Raj,

You can edit the default ControlTemplate of the RadRibbonTab control. You can follow this approach. Then you can set a White Foreground property to the HeaderElement and change this value in the Selected VisualState:
<ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderElement"
        Storyboard.TargetProperty="Foreground">
    <DiscreteObjectKeyFrame KeyTime="0" Value="Black" />
</ObjectAnimationUsingKeyFrames>
I attached a sample project to get you started. Please let me know if it helps.

Greetings,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

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