title: WPF finish button animation before perform click
body: <p>I have button with a coloranimation, and a click event. The coloranimation animates the background of the button from gray to orange in 1 seconds, then reverse it. In the click event I load a lot of things (it takes around 4-5 secs).</p>
  
  <p>My problem is that, when I click on the button the animation begins, but immediately stops after a few millisecs(click event started), and after the click event finished, it finishes the animation as well. 
  I want that first finish the animation, then executes click event.</p>
  
  <p>I googled a lot, and found the animation completed event and it's working, but is it possible somehow to make a basic solution for this, that I can use for all of my buttons in my program?</p>
  
  <p>Thanks for the replies in advance!</p>
  
  <p>BR,
  Zoli</p>
  
  <p>EDIT: ---------------------------------------------</p>
  
  <p>Do something like this:</p>
  
  <pre><code>PreviewMouseDown()
  {
      AnimateTheButton();
      //Wait for the animation to be finished
  }
  </code></pre>