title: How to use left over space in wpf tab items row
body: <p>Upper part of TabControl consists of TabItem controls. Is there a way to reuse remaining space there to put some WPF content?</p>
  
  <p>I think I could use a "fake" TabItem with different styling and put my stuff in TabItem.Header but I was hoping there's a better way.</p>
  
  <p><strong>Solution</strong></p>
  
  <p>Based on the answer below, I got the desired behavior by wrapping TabPanel in the template below within e.g. StackPanel and adding my additional content after it.</p>
  
  <pre><code>&lt;StackPanel Orientation="Horizontal"&gt;
     &lt;TabPanel 
      Grid.Row="0"
      Panel.ZIndex="1" 
      Margin="0,0,4,-1" 
      IsItemsHost="True"
      Background="Transparent" /&gt;
      &lt;TextBlock&gt;Foo&lt;/TextBlock&gt;
  &lt;/StackPanel&gt;
  </code></pre>