title: Click button programmatically and show pressed animation
body: <p>WPF/.NET4
  I have Button1. it has MouseOver and Pressed Animations. i want to click the button with a key on keyboard. i have tried Automation like:</p>
  
  <pre><code>ButtonAutomationPeer peer= new ButtonAutomationPeer(Button1);
  IInvokeProvider invokeProv = peer.GetPattern(PatternInterface.Invoke) as IInvokeProvider;
  invokeProv.Invoke();
  </code></pre>
  
  <p>this raises the Button1 click event handler. i have tried this too:</p>
  
  <pre><code>Button1.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent));
  </code></pre>
  
  <p>these two work fine but none of these show the pressed state of button. they raise event handler and run the inside code of the button but don't show the reaction of the button when it is clicked. Pressed state is not shown. how should i do this? Thanks</p>