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

Changing Tab Header - XAML only preferred

2 Answers 63 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Pete
Top achievements
Rank 1
Pete asked on 24 Oct 2011, 01:09 PM
My tabControl has approximately 20 tabs.

One tab in particular, for the header, I need to change the background color and font color based on a boolean property on the view model.

My tabs are created in XAML which rules out template selectors.  At least I think it does!  

So what I need is a way to change TabItem header properties for a specific tab based on the value of a property on the view model. In XAML.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 27 Oct 2011, 01:31 PM
Hi Pete,

 I prepared a project for you where the telerik's ContainerBindings are used in order to bind the Foreground and Background of the RadTabItems to a properties in the ViewModel. Please check it out and let us know if this is what you need.

Regards,
Petar Mladenov
the Telerik team

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

0
Pete
Top achievements
Rank 1
answered on 27 Oct 2011, 06:20 PM
Petar;

Thanks.  This looks to be exactly what I need.
Tags
TabControl
Asked by
Pete
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Pete
Top achievements
Rank 1
Share this question
or