RadTabItem HeaderTemplate And HeaderForeground binding problem

2 posts, 0 answers
  1. thomas
    thomas avatar
    1 posts
    Member since:
    Mar 2014

    Posted 29 Apr 2015 Link to this post

    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.

     

     

     

  2. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 30 Apr 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top