title: WPF Menu - unwanted borders
body: <p>I've made a simple WPF menu and changed its background and foreground colors, but there is still a border around the submenu itself and around each separator which I'm not able to remove:</p>
  
  <p><img src="https://i.stack.imgur.com/60M4d.jpg" alt="enter image description here"></p>
  
  <p><strong>Xaml code:</strong></p>
  
  <pre><code>&lt;Menu Style="{DynamicResource MainMenu}" IsMainMenu="true"&gt;
      &lt;MenuItem Header="_File"&gt;
         &lt;MenuItem Header="_New" Command="New"/&gt;
            &lt;Separator /&gt;
            &lt;MenuItem Header="_Import"/&gt;
            &lt;MenuItem Header="_Export"/&gt;
            &lt;Separator /&gt;
            &lt;MenuItem Header="_Print..." Command="Print"/&gt;
            &lt;MenuItem Header="_Print Setup..."/&gt;
            &lt;Separator /&gt;
            &lt;MenuItem Header="_Sign Out" /&gt;
            &lt;Separator /&gt;
            &lt;MenuItem Header="_Exit"/&gt;
         &lt;MenuItem Header="_Edit"/&gt;
         &lt;MenuItem Header="_View"/&gt;
         &lt;MenuItem Header="_Tools"/&gt;
         &lt;MenuItem Header="_Help"/&gt;
  &lt;/Menu&gt;
  </code></pre>
  
  <p><strong>Style:</strong></p>
  
  <pre><code>&lt;Style TargetType="{x:Type Menu}" x:Key="MainMenu"&gt;
      &lt;Setter Property="Background" Value="#2b2b2b"/&gt;
      &lt;Setter Property="Foreground" Value="White"/&gt;
      &lt;Setter Property="BorderBrush" Value="#3f3f46"/&gt;
      &lt;Style.Resources&gt;
          &lt;Style TargetType="{x:Type MenuItem}"&gt;
              &lt;Setter Property="Background" Value="#3f3f46"/&gt;
              &lt;Setter Property="Foreground" Value="White"/&gt;
              &lt;Setter Property="BorderBrush" Value="#3f3f46"/&gt;
          &lt;/Style&gt;
          &lt;Style TargetType="{x:Type Separator}"&gt;
              &lt;Setter Property="Background" Value="White"/&gt;
          &lt;/Style&gt;
      &lt;/Style.Resources&gt;
  &lt;/Style&gt;
  </code></pre>