title: Need help overriding a WPF button style background color.
body: <p>I have the below code set for a custom button. But I want to change the background for a single button. </p>
  
  <pre><code>&lt;Style x:Key="myButtonStyle" TargetType="{x:Type Button}"&gt;
  &lt;Setter Property="Foreground" Value="White"/&gt;
  &lt;Setter Property="Template"&gt;
      &lt;Setter.Value&gt;
          &lt;ControlTemplate TargetType="{x:Type Button}"&gt;
              &lt;Grid&gt;
                  &lt;Rectangle x:Name="rectangle" Fill="#FF2F2FEA" Stroke="Black"&gt;
                      &lt;Rectangle.Effect&gt;
                          &lt;DropShadowEffect ShadowDepth="3"/&gt;
                      &lt;/Rectangle.Effect&gt;
                  &lt;/Rectangle&gt;
                  &lt;ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Bottom" Margin="2.833,0,2.5,1.162" RenderTransformOrigin="0.5,0.5" Width="69.667"/&gt;
              &lt;/Grid&gt;
          &lt;/ControlTemplate&gt;
      &lt;/Setter.Value&gt;
  &lt;/Setter&gt;
  </code></pre>
  
  <p></p>
  
  <p>The code below is meant to override the background color but doesn't. What am I missing? Thanks</p>
  
  <pre><code>&lt;Style x:Key="SpecialButton" TargetType="Button" BasedOn="{StaticResource myButtonStyle}"&gt;
     &lt;Setter Property="Background" Value="PaleGreen" /&gt;
     &lt;Setter Property="Height" Value="19.96" /&gt;
  &lt;/Style&gt;
  </code></pre>