Bug in RadTabControl when using Windows8 theme: TextBlock placed inside TabItem is invisble (Workaround inside)

2 posts, 0 answers
  1. David Liebeherr - rent-a-developer
    David Liebeherr - rent-a-developer avatar
    11 posts
    Member since:
    Dec 2006

    Posted 25 Oct 2013 Link to this post


    to anyone having the same Issue:

    When you use the Windows8 theme (or Windows8Touch theme) and you place a TextBlock inside a RadTabItem, the TextBlock's Foreground is set to white, which makes the TextBlock effectively invisible.
    To work around this issue you have to set the ContentTemplate of the RadTabControl like this:

          <ContentControl Content="{Binding}" TextBlock.Foreground="Black" />

    This will set the Foreground of all TextBlocks placed inside the TabControl to Black, so that they are visible again.

    Please note that this will not work if the IsContentPreserved Property of the RadtabControl is set to true.

    I hope this helps someone.

    Sincerely yours,
    David Liebeherr
  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1251 posts

    Posted 30 Oct 2013 Link to this post

    Hello David,

    You are right that the Foreground and the Background of any TextBlocks placed in the content of the RadTabItems are both with white color. The best solution if to set the Foreground property of any TextBlock to Black.

    However, we managed to fix this issue and the fix is available in our LIB version. Please give the LIB a try and let us know if you need any further assistance.

    Pavel R. Pavlov
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top