title: WPF Menu displays to the left of the window
body: <p>I have a simple Menu in a DockPanel.  Here is the XAML:</p>
  
  <pre><code>&lt;Window x:Class="WpfApplication1.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="MainWindow" Height="350" Width="525"&gt;
  &lt;DockPanel&gt;
      &lt;Menu DockPanel.Dock="Top"&gt;
          &lt;MenuItem Name="file" Header="_File"&gt;
              &lt;MenuItem Name="exitMenuItem" Header="E_xit"/&gt;
          &lt;/MenuItem&gt;
      &lt;/Menu&gt;
      &lt;Grid&gt;
      &lt;/Grid&gt;
  &lt;/DockPanel&gt;
  </code></pre>
  
  <p></p>
  
  <p>Why does the Menu drop down to the left instead of the right of the window border like most applications?</p>
  
  <p><img src="https://i.stack.imgur.com/jcxaC.png" alt="screenshot of Window"></p>