title: Change the background color when listbox is disabled
body: <p>I have a ListBox, and I want to change the background color when ListBox is disabled and Style variable is "Negative" or "Positive", Initial, I did as below:</p>
  
  <p>//----------------------------UPDATED----------------------------</p>
  
  <pre><code>&lt;ListBox&gt;
      &lt;ListBox.Style&gt;
          &lt;Style TargetType="{x:Type ListBox}"&gt;
              &lt;Style.Triggers&gt;
                  &lt;MultiDataTrigger&gt;
                      &lt;MultiDataTrigger.Conditions&gt;
                          &lt;Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsEnable}" Value="False"/&gt;
                          &lt;Condition Binding="{Binding Path=Style}" Value="Negative"/&gt;
                      &lt;/MultiDataTrigger.Conditions&gt;
                      &lt;Setter Property="Background" Value="Black" /&gt;
                  &lt;/MultiDataTrigger&gt;
                  &lt;MultiDataTrigger&gt;
                      &lt;MultiDataTrigger.Conditions&gt;
                          &lt;Condition Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsEnable}" Value="False"/&gt;
                          &lt;Condition Binding="{Binding Path=Style}" Value="Positive"/&gt;
                      &lt;/MultiDataTrigger.Conditions&gt;
                      &lt;Setter Property="Background" Value="Yellow" /&gt;
                  &lt;/MultiDataTrigger&gt;
              &lt;/Style.Triggers&gt;
          &lt;/Style&gt;
      &lt;/ListBox.Style&gt;
  &lt;/ListBox&gt;
  </code></pre>
  
  <p>But, not worked, ListBox can't change background color by above solution, so I did as below:
  //----------------------------END UPDATED----------------------------</p>
  
  <pre><code>&lt;StackPanel&gt;
      &lt;ListBox IsEnabled="{Binding ElementName=enabledButton, Path=IsChecked}"&gt;
          &lt;ListBox.Resources&gt;
              &lt;SolidColorBrush x:Key="{x:Static SystemColors.ControlBrushKey}" Color="Red" /&gt;
          &lt;/ListBox.Resources&gt;
          &lt;ListBoxItem&gt;Item 1&lt;/ListBoxItem&gt;
          &lt;ListBoxItem&gt;Item 2&lt;/ListBoxItem&gt;
          &lt;ListBoxItem&gt;Item 3&lt;/ListBoxItem&gt;
          &lt;ListBoxItem&gt;Item 4&lt;/ListBoxItem&gt;
          &lt;ListBoxItem&gt;Item 5&lt;/ListBoxItem&gt;
      &lt;/ListBox&gt;
      &lt;ToggleButton Name="enabledButton" IsChecked="True" Content="IsEnabled"/&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>It's work! ListBox can change background color to red when disabled.</p>
  
  <p>But, I need add a condition:</p>
  
  <p>-If style is negative (Style="Negative"), ListBox change color to "Black".</p>
  
  <p>-If style is positive (Style="Positive"), ListBox change color to "Yellow".</p>
  
  <p>I tried to use a trigger, but unsuccessful.
  Anyone have a simple way to get this working?</p>