title: In WPF, does the order of Triggers matter?
body: <p>I have the following xaml:</p>
  
  <pre><code>&lt;DockPanel&gt;
      &lt;DockPanel.Resources&gt;
          &lt;Style TargetType="Button"&gt;
              &lt;Style.Triggers&gt;
                  &lt;Trigger Property="IsMouseOver" Value="True"&gt;
                      &lt;Setter Property="Foreground" Value="Yellow"&gt;&lt;/Setter&gt;
                  &lt;/Trigger&gt;
                  &lt;Trigger Property="IsPressed" Value="True"&gt;
                      &lt;Setter Property="Foreground" Value="Green"&gt;&lt;/Setter&gt;
                  &lt;/Trigger&gt;
              &lt;/Style.Triggers&gt;
          &lt;/Style&gt;
      &lt;/DockPanel.Resources&gt;
      &lt;Button Content="Cut" Height="30" Width="75"/&gt;
  &lt;/DockPanel&gt;
  </code></pre>
  
  <p>What happens is that when I mouse over the button, the foreground changes to yellow and then when I press the button, the foreground changes to green.</p>
  
  <p>Now, if I reverse the order of my triggers in the XAML, the foreground changes to yellow when I mouse over it, but when I press the button, the foreground does NOT change to green.</p>
  
  <p>What is the explanation for this?  Is one trigger overriding the other?  </p>