Can't change the color of the RadTabControl background

2 posts, 0 answers
  1. Tony
    Tony avatar
    111 posts
    Member since:
    May 2011

    Posted 28 Mar 2012 Link to this post

    My WPF application uses a RadTabControl.  My app runs on laptops with touch screens that are used in police cars.  The application has a Night Mode which has a subdued palette so as not to affect the officer's night vision.

    I've been totally unable to change the background color of the tab control.  It has a gray gradient background normally, which is what I want during daylight hours ("day mode").  I have used Snoop to traverse the visual tree, and I've found a HeaderBackgrouind Border control.  If I change the background color in Snoop, I get the effect I want.  But if I try to change the background color of the same Border in the template in Expression Blend, the control totally ignores my changes and the background is always the gray gradient.

    Also, I haven't been able to figure out how to change the colors of the selected tab.  That is, I haven't been able to find the item(s) in the temlpate that are drawn when the tab is selected.

    What is causing my edits to be ignored? Is it the StyleManager attached property?  If I delete that, will my changes stick?  And if I do, what is the xaml for the gradient that is being used by the Office Black theme?  If it's none of that, how do I change the background of the tab control? 

    Tony
  2. Tony
    Tony avatar
    111 posts
    Member since:
    May 2011

    Posted 30 Mar 2012 Link to this post

    Please ignore this post.  My issues are being addressed in a posting I made in another forum by mistake.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top