Setting the background color of WPF TabControl inactive tabs

Posted by David Veeneman on Stack Overflow See other posts from Stack Overflow or by David Veeneman
Published on 2010-03-17T14:12:18Z Indexed on 2010/03/17 15:11 UTC
Read the original article Hit count: 502

Filed under:
|

Is there a simple way to set the background brush of all inactive tabs in a WPF TabControl? I want to emulate the look of VS 2010 on a TabControl--the background color of the control's inactive tabs should match the background color of the window in which the TabControl is sited, so that you see only the text of the tab, and not the tab itself.

I know it will take a ControlTemplate to do it; I am trying to figure out what to put in the control template. Put another way, How do I specify that a particular brush should be applied to all inactive tabs? Thanks for your help.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about wpf-controls