title: WPF: Center TabItems in a TabControl
body: <p>in my XAML code, I have a TabControl with multiple items. The problem I have is that I can not center the tabitems about the content area. The tabs are always starting on the left side, but I need them centered. This is my code:</p>
  
  <pre><code>&lt;TabControl&gt;
      &lt;TabItem Header="Test 1"  Style="{StaticResource LeftTab}" Height="40" /&gt;
      &lt;TabItem Header="Test 2"  Style="{StaticResource MiddleTab}"  /&gt;
      &lt;TabItem Header="Test 3"  Style="{StaticResource MiddleTab}" /&gt;
      &lt;TabItem Header="Test 4" Style="{StaticResource RightTab}"  /&gt;
  &lt;/TabControl&gt;
  </code></pre>
  
  <p>I do not know a property to center the items - any idea?</p>