So, I want the tab items in my tabs to be centered horizontally. I also want to change the background behind the tabs. I found an answer for both of those things:
This one explains exactly what I want to do for the background and gives a solution
This one explains how to center the tabItems
The problem I have is that they both work great individually, but when combined, they don't work. The tabItems are centered fine, but the background color isn't the color I specify.
E.g. Code:
<TabControl>
<TabControl.Resources>
<Style TargetType="{x:Type TabPanel}">
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="Background" Value="Red" />
</Style>
</TabControl.Resources>
<TabItem Header="Test 1" />
<TabItem Header="Test 2" />
<TabItem Header="Test 3" />
<TabItem Header="Test 4" />
</TabControl>
Help?