title: WPF Disabled button's background
body: <p>I tried to change <code>Button</code>'s style when it is disabled:</p>
  <pre><code>    &lt;Style TargetType=&quot;Button&quot; x:Key=&quot;MyButton2&quot;&gt;
          &lt;Setter Property=&quot;Background&quot; Value=&quot;MediumAquamarine&quot; /&gt;
          &lt;Setter Property=&quot;Foreground&quot; Value=&quot;MediumBlue&quot; /&gt;
          
          &lt;Style.Triggers&gt;
              &lt;Trigger Property=&quot;IsEnabled&quot; Value=&quot;false&quot;&gt;
                  &lt;Setter Property=&quot;Background&quot; Value=&quot;Green&quot;/&gt;
                  &lt;Setter Property=&quot;Foreground&quot; Value=&quot;DeepPink&quot;/&gt;
              &lt;/Trigger&gt;
          &lt;/Style.Triggers&gt;
  
      &lt;/Style&gt;
  </code></pre>
  <p>and my button:</p>
  <pre><code>&lt;Button Style=&quot;{StaticResource MyButton2}&quot; Content=&quot;My text&quot; Width=&quot;100&quot; Height=&quot;30&quot; IsEnabled=&quot;False&quot; /&gt;    
  </code></pre>
  <p>But for some reason this style is not applied to the button:</p>
  <p><img src="https://i.stack.imgur.com/NWsbs.png" alt="enter image description here" /></p>
  <p>How can I apply this style to my button? And can I do it without overriding the button's template only with styles?</p>