title: How to remove the default margin on the content of a TabItem?
body: <p>I'm using the <code>TabControl</code> class in WPF and I've noticed that the content of each <code>TabItem</code> has a default margin of 4 pixels on all sides.</p>
  
  <p>Sample code:</p>
  
  <pre><code>&lt;Window x:Class="TabControlPadding.Window1"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="Window1" Height="300" Width="300"&gt;
    &lt;Grid&gt;
      &lt;TabControl Margin="10"&gt;
        &lt;TabItem Header="Tab 1"&gt;
          &lt;Grid Background="Pink"/&gt;
        &lt;/TabItem&gt;
        &lt;TabItem Header="Tab 2"&gt;
          &lt;Grid Background="LightBlue"/&gt;
        &lt;/TabItem&gt;
      &lt;/TabControl&gt;
    &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Screenshot:</p>
  
  <p><img src="https://i.stack.imgur.com/zTkdY.png" alt="The margin around a TabItem&#39;s content"></p>
  
  <p>I'd like to get rid of this margin (reduce it to zero), but <strong>I'd prefer not to have to completely replace templates</strong> or anything heavy like that.</p>
  
  <p>Is there a simple way I can do this in a very targeted manner?</p>