title: Forcing TabPanel to use specified TabItem template
body: <p>So I have created my own <code>TabControl</code> and <code>TabItem</code> templates (both with <code>x:Name</code> attribute), and I use them like this:</p>
  
  <pre><code>    &lt;Style TargetType="TabControl"&gt;
          &lt;Setter Property="Template" Value="{DynamicResource MyTabControl}" /&gt;
      &lt;/Style&gt;
  </code></pre>
  
  <p>As expected, this makes all <code>TabControl</code>s in the window use <code>MyTabControl</code> template, however it still uses the old <code>TabItem</code> template. How can I make it work so the code above somehow manages to style every <code>TabItem</code> inside that template to use <code>MyTabItem</code> template?</p>
  
  <p>Of course I could just edit the <code>MyTabControl</code> template and set the template manually, but that would require me to use something else than <code>TabPanel</code> container (probably <code>StackPanel</code>). Is it somehow possible to tell the <code>TabPanel</code> to use specific template for every <code>TabItem</code>?</p>
  
  <p>In <code>MyTabControl</code> I use this to display <code>TabItem</code>s:</p>
  
  <pre><code>&lt;TabPanel IsItemsHost="True" /&gt;
  </code></pre>
  
  <p>And I'm looking for something like this (I don't know if this is possible):</p>
  
  <pre><code>&lt;TabPanel IsItemsHost="True" TabItemsTemplate="MyTabItem" /&gt;
  </code></pre>