title: Disabled button not changing color for DataTrigger in WPF
body: <p>I have the below code where I'm trying to change the background color of the button when its disabled. But it still stays at the same background color as it is when its enabled. Its not changing though the button does get disabled. Any help would be much appreciated.</p>
  
  <pre><code> &lt;Button  Content="Install" Command="{Binding InstallCommand}"  Margin="150,30,30,22" Width="118" FontSize="18" FontWeight="Bold" FontFamily="Segoe UI Light" FontStretch="ExtraExpanded"&gt;
                  &lt;Button.Style&gt;
                      &lt;Style TargetType="Button"&gt;
                          &lt;Setter Property="IsEnabled" Value="True" /&gt;
                          &lt;Setter Property="OverridesDefaultStyle" Value="True"/&gt;
                          &lt;Setter Property="Foreground" Value="White"/&gt;
                          &lt;Setter Property="Background" Value="#FF4F4F4F"/&gt;
                          &lt;Setter Property="Template"&gt;
                              &lt;Setter.Value&gt;
                                  &lt;ControlTemplate TargetType="Button"&gt;
                                      &lt;Border Name="border" 
                          BorderThickness="1"                                  
                          Background="{TemplateBinding Background}"&gt;
                                          &lt;ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" /&gt;
                                      &lt;/Border&gt;
                                      &lt;ControlTemplate.Triggers&gt;
                                          &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                                              &lt;Setter TargetName="border" Property="BorderBrush" Value="Black" /&gt;
                                              &lt;Setter Property="Foreground" Value="White"/&gt;
                                              &lt;Setter Property="Background" Value="Goldenrod"/&gt;
                                          &lt;/Trigger&gt;
                                      &lt;/ControlTemplate.Triggers&gt;
                                  &lt;/ControlTemplate&gt;
                              &lt;/Setter.Value&gt;
                          &lt;/Setter&gt;
                          &lt;Style.Triggers&gt;
                              &lt;DataTrigger Binding="{Binding InstallEnabled, Converter={StaticResource BooleanToVisibilityConverter}}" Value=""&gt;
                                  &lt;Setter Property="IsEnabled" Value="False" /&gt;
                                  &lt;Setter Property="Background" Value="{DynamicResource windowBGBrushBusinessDateChanged}"/&gt;
                              &lt;/DataTrigger&gt;
                          &lt;/Style.Triggers&gt;
  
                      &lt;/Style&gt;
                  &lt;/Button.Style&gt;
              &lt;/Button&gt;
  </code></pre>