This is a migrated thread and some comments may be shown as answers.

Can't change the color of the RadTabControl background

1 Answer 115 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 29 Mar 2012, 01:24 AM
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

1 Answer, 1 is accepted

Sort by
0
Tony
Top achievements
Rank 1
answered on 30 Mar 2012, 04:03 PM
Please ignore this post.  My issues are being addressed in a posting I made in another forum by mistake.
Tags
TabControl
Asked by
Tony
Top achievements
Rank 1
Answers by
Tony
Top achievements
Rank 1
Share this question
or