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

Binding RadTabControl HeaderTemplate to Selected?

1 Answer 74 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Neal Sanche
Top achievements
Rank 1
Neal Sanche asked on 31 Mar 2010, 07:05 PM
I have a RadTabControl that I've been trying to style. I've edited the HeaderTemplate and have it correctly data binding to my data, however I have been asked to change the colours of icons and text when the tab item is selected. So far, I've only been able to change the state of the TopTemplate when the tab item is selected, but can't figure out how to affect the content in the HeaderTemplate.

Can you give me any clues? Thanks.

-Neal

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 06 Apr 2010, 07:48 AM
Hello Neal Sanche,

Thank you for your feedback.
We made some changes in the templates of the Themes in the Q1 release.
In the previous version of our control it was possible to change the foreground color of TabItem because we used  telerikNavigationPrimitives:TabItemContentPresenter .
 In the new version (Q1) we use ContentPresenter. 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.  Using this change means that you will not be able to change the theme at Runtime.

All the best,
Dimitrina
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
TabControl
Asked by
Neal Sanche
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or