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

RadTabItem HeaderTemplate And HeaderForeground binding problem

1 Answer 193 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
thomas
Top achievements
Rank 1
thomas asked on 29 Apr 2015, 01:31 PM

Seems it is impossible to use RadTabItem.HeaderTemplate if RatTabControl is not binded to collection.

Using Snoop i see that template itself is applied but DataContext is null. So any binding don't work in the template.

http://docs.telerik.com/devtools/wpf/controls/radtabcontrol/templating/item-templates-and-selectors say "The HeaderTemplate is mainly used when we bind the RadTabControl to a collection". ). It doesn't say that it is used ONLY for collection.

 

HeaderForeground seem is ignored completely. Using Snoop i see that foreground is taken from some resources if i don't use HeaderTemplate.

 

 

 

1 Answer, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 30 Apr 2015, 08:56 AM
Hello Thomas,

I have tried to reproduce the two issues that you have reported with our latest binaries, but with no success. The RadTabItem HeaderTemplate and HeaderForeground properties are applied in both XAML defined and data-bound scenario.

I have attached a sample project demonstrating that the HeaderTemplate and the HeaderForeground properties are applied. Please take a loot and let us know how it works on your side. If the issue is reproduced in the sample please let us know the version of your binaries.

Kind regards,
Kiril Vandov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
TabControl
Asked by
thomas
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Share this question
or