title: How to exact stretch a Menu Control to the TabHeader in WPF?
body: <p>Following XAML code is for your testing needs.</p>
  
  <pre><code>&lt;Window x:Class="MainWindow" 
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
  x:Name="MainWindow" Title="MainWindow" 
  Height="200" Width="300"&gt;
  
  &lt;Grid&gt;
      &lt;TabControl&gt;
          &lt;TabItem Height="40" Width="50" Margin="0" Padding="0"&gt;
              &lt;TabItem.Header&gt;
                  &lt;Menu Height="40" Width="50" Margin="0" Padding="0"&gt;
                      &lt;MenuItem Height="40" Width="50" Header="File" Margin="0" Padding="0" Background="Red"&gt;
                          &lt;MenuItem Header="About"/&gt;
                          &lt;MenuItem Header="Help"/&gt;
                          &lt;MenuItem Header="Print"/&gt;
                      &lt;/MenuItem&gt;
                  &lt;/Menu&gt;
              &lt;/TabItem.Header&gt;
              &lt;Label Content="No content here because this Tab will not use."/&gt;
          &lt;/TabItem&gt;
          &lt;TabItem Height="40" Width="50" Header="Spain" IsSelected="True"&gt;
              &lt;Label Content="Some content for Spain"/&gt;
          &lt;/TabItem&gt;
          &lt;TabItem Height="40" Width="50" Header="France"&gt;
              &lt;Label Content="Some content for France"/&gt;
          &lt;/TabItem&gt;
          &lt;TabItem Height="40" Width="50" Header="Italy"&gt;
              &lt;Label Content="Some content for Italy"/&gt;
          &lt;/TabItem&gt;
      &lt;/TabControl&gt;
  &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Question Picture: <a href="https://prnt.sc/imvkfk" rel="nofollow noreferrer">https://prnt.sc/imvkfk</a></p>
  
  <p>I tried following link but it doesnt work.</p>
  
  <p><a href="http://www.techerator.com/2011/05/how-to-stretch-a-menu-control-to-the-width-of-a-window-in-wpf/" rel="nofollow noreferrer">http://www.techerator.com/2011/05/how-to-stretch-a-menu-control-to-the-width-of-a-window-in-wpf/</a></p>
  
  <p>P.S. I want exact stretch. I want User is not able to click TabHeader with mouse anyway.</p>