I'm developing a WPF application which makes extensive use of the TabControl. Part of the requirement is to style individual TabItem background colours, for example TabItem1 = Red, TabItem2 = Green etc etc, I'm using Styles and Templates to achieve this which is working nicely. The problem I have is that when a tab IsSelected I must also change the background colour for the TabControl, ideally I would like to use a Trigger in the TabItem template to set the background colour for the TabControl using all xaml if possible? not sure if it your able to access a TabControl property within a TabItem template?
Being my first WPF application I would certainly appreciate any ideas, comments etc.