This is a migrated thread and some comments may be shown as answers.
Changing forecolor on selected tab
1 Answer 15 Views
This is a migrated thread and some comments may be shown as answers.
Czeshirecat
Top achievements
Rank 1
Czeshirecat asked on 16 May 2018, 08:19 AM

Hi.

I'm using the Breeze theme with default values on this pageview control.

Boss says he doesn't like the black on grey appearance of the tab text as they'll be difficult to see. He wants me to change the forecolor of the selected tab to white. (I thought I'd change the theme but 5mins with the theme editor terrified me)

How can I achieve this please?

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 17 May 2018, 09:58 AM
Hi Claire,

It would be easier to do this in the code. You can use the SetThemeValueOverride method which can change the setting in the already loaded theme. Here is the code:
foreach (var item in radPageView1.ViewElement.Items)
{
    item.SetThemeValueOverride(LightVisualElement.ForeColorProperty, Color.White, "Selected");
}

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Asked by
Czeshirecat
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or