Plain-and-simple answer needed.

2 posts, 0 answers
  1. Nye
    Nye avatar
    1 posts
    Member since:
    Feb 2011

    Posted 23 Feb 2011 Link to this post

    I have a mission-critical question that needs answering within the next few hours. If you could help me, that'd be great.

    I'm a designer mostly, I don't know anything about code. But I want to do something relatively simple in the TabControl. Or at least, I thought it was simple, but apparently it is not.

    Where and how do I change the text color for an unselected tab? I only want to make it white against the glossy black background I created just the other night.
  2. Dimitrina
    Dimitrina avatar
    442 posts

    Posted 01 Mar 2011 Link to this post

    Hi Nye,

    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.  You can edit the default ControlTemplates of the RadControl in Blend (read more). Also, please keep in mind that using the attached solution means that you will not be able to change the theme at Runtime.

    If you have further questions please do not hesitate to ask us.
    I hope this will help you.

    Best wishes,
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top