title: WPF: How to style or disable the default ContextMenu of a TextBox
body: <p>Apparantly when users right-click in our WPF application, and they use the Windows Classic theme, the default ContextMenu of the TextBox (which contains Copy, Cut and Paste) has a black background.</p>
  
  <p>I know this works well:</p>
  
  <pre><code>&lt;Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt;
  
    &lt;TextBox ContextMenu="{x:Null}"/&gt;
  
  &lt;/Page&gt;
  </code></pre>
  
  <p>But this doesn't work:</p>
  
  <pre><code>&lt;Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"&gt;
  
  &lt;Page.Resources&gt;
  
   &lt;Style x:Key="{x:Type TextBox}" TargetType="{x:Type TextBox}"&gt;
     &lt;Setter Property="ContextMenu" Value="{x:Null}"/&gt;
  &lt;/Style&gt;
  &lt;/Page.Resources&gt;
  
    &lt;TextBox/&gt;
  &lt;/Page&gt; 
  </code></pre>
  
  <p>Does anyone know how to style or disable the default ContextMenu for all TextBoxes in WPF?</p>