Changing Tab Header - XAML only preferred

3 posts, 0 answers
  1. Pete
    Pete avatar
    27 posts
    Member since:
    Feb 2011

    Posted 24 Oct 2011 Link to this post

    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. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 27 Oct 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Pete
    Pete avatar
    27 posts
    Member since:
    Feb 2011

    Posted 27 Oct 2011 Link to this post

    Petar;

    Thanks.  This looks to be exactly what I need.
Back to Top