title: ContextMenu in WPF is too wide
body: <p>I've got a problem with my ContextMenu in WPF. The menu is far too wide- it's the width of the items I put on it, plus about fifty-a hundred pixels. So when you open the menu, instead of being a clean list of options or buttons, there's loads of greyspace on each side. How can I fix this?</p>
  
  <p>Edit: Here's my XAML for the menu:</p>
  
  <pre><code>&lt;ContextMenu Padding="0"&gt;
      &lt;Button Content="Close Tab" Height="23" Name="closetabbutton" Width="75" Margin="0,0,0,0" Click="closetabbutton_Click" /&gt;
      &lt;TextBox Height="23" Name="renamebox" Width="75" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ClipToBounds="True" TextChanged="renamebox_TextChanged" /&gt;
      &lt;Button Content="Close Menu" Height="23" Name="closemenubutton" Width="75" Margin="0,0,0,0" Click="closemenubutton_Click" /&gt;
  &lt;/ContextMenu&gt;
  </code></pre>