title: Control a button's enabled state using 3 multi data triggers
body: <p>I want to control a buttons IsEnabled state based on the following conditions. The button should be active only when :</p>
  
  <ol>
  <li>Checkbox 1 or Checkbox 2 is checked.</li>
  <li>Listbox contains atleast 1 list item.         </li>
  </ol>
  
  <p>My issue is : I have to use separate MultiDataTrigger for achieving this behavior. When I add the code  to the first multidata trigger, it doesn't work. ie even if list box doesn't have any items, the button is getting enabled.</p>
  
  <p>So I need a solution for this. is there any possible way to include the 3rd multi data trigger condition along with the 2 conditions, so that few lines of code can be saved?</p>
  
  <p>Thanks in advance. Please check my code below.</p>
  
  <pre><code>   &lt;Button.Style&gt;
                  &lt;Style TargetType="Button"&gt;
                      &lt;Style.Triggers&gt;
                          &lt;MultiDataTrigger&gt;
                              &lt;MultiDataTrigger.Conditions&gt;
                                  &lt;Condition Binding="{Binding ElementName=Checkbox1, Path=IsChecked}" Value="False" /&gt;
                                  &lt;Condition Binding="{Binding ElementName=Checkbox2, Path=IsChecked}" Value="False" /&gt;
                              &lt;/MultiDataTrigger.Conditions&gt;
                              &lt;Setter Property="IsEnabled" Value="False" /&gt;
                          &lt;/MultiDataTrigger&gt;
                          &lt;MultiDataTrigger&gt;
                              &lt;MultiDataTrigger.Conditions&gt;
                                  &lt;Condition Binding="{Binding ElementName=ListBox, Path=Items.Count}" Value="0" /&gt;
                              &lt;/MultiDataTrigger.Conditions&gt;
                              &lt;Setter Property="IsEnabled" Value="False" /&gt;
                          &lt;/MultiDataTrigger&gt;
                      &lt;/Style.Triggers&gt;
                  &lt;/Style&gt;
              &lt;/Button.Style&gt;
  </code></pre>