title: WPF overriding ContextMenu style - DropShadowEffect not working
body: <p>I want to override the <code>ContextMenu</code>'s style.<br/>
  Here's my style:</p>
  
  <pre><code>&lt;SolidColorBrush x:Key="WindowBackgroundBrush" Color="#E7E8EC" /&gt;
  &lt;SolidColorBrush x:Key="SolidBorderBrush" Color="#CCCEDB" /&gt;
  &lt;Color x:Key="DropShadowColor"&gt;#808080&lt;/Color&gt;
  
  &lt;Style TargetType="{x:Type ContextMenu}"&gt;
      &lt;Setter Property="SnapsToDevicePixels" Value="True"/&gt;
      &lt;Setter Property="OverridesDefaultStyle" Value="True"/&gt;
      &lt;Setter Property="FontFamily" Value="Segoe UI"/&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="{x:Type ContextMenu}"&gt;
                  &lt;Border Name="Border" Background="{StaticResource WindowBackgroundBrush}" BorderBrush="{StaticResource SolidBorderBrush}" BorderThickness="1" &gt;
                      &lt;StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Cycle"/&gt;
                      &lt;Border.Effect&gt;
                          &lt;DropShadowEffect Color="{StaticResource DropShadowColor}" Opacity="0.60" ShadowDepth="4"/&gt;
                      &lt;/Border.Effect&gt;
                  &lt;/Border&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>I dont know why, but the shadow is not working (I dont see the shadow).<br/>
  How can I solve it?</p>