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

Plain-and-simple answer needed.

1 Answer 28 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Nye
Top achievements
Rank 1
Nye asked on 23 Feb 2011, 09:05 PM
I have a mission-critical question that needs answering within the next few hours. If you could help me, that'd be great.

I'm a designer mostly, I don't know anything about code. But I want to do something relatively simple in the TabControl. Or at least, I thought it was simple, but apparently it is not.

Where and how do I change the text color for an unselected tab? I only want to make it white against the glossy black background I created just the other night.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 01 Mar 2011, 09:47 AM
Hi Nye,

Unfortunately, it is not possible to change the foreground of the TabItem because of the ContentPresenter that the Tab uses internally. The ContentPresenter itself does not expose a Foreground property.

Please find attached a project with a workaround. In the project I made a custom theme of TabItem control and replaced the ContentPresenter with ContentControl.  You can edit the default ControlTemplates of the RadControl in Blend (read more). Also, please keep in mind that using the attached solution means that you will not be able to change the theme at Runtime.

If you have further questions please do not hesitate to ask us.
I hope this will help you.



Best wishes,
Dimitrina
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
TabControl
Asked by
Nye
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or