title: Programmatically raise a command
body: <p>I have a button:</p>
  
  <pre><code>&lt;Button x:Name="MyButton" Command="SomeCommand"/&gt;
  </code></pre>
  
  <p>Is there a way to execute the command from source? Calling the click on the button does not help:</p>
  
  <pre><code>MyButton.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
  </code></pre>
  
  <p>I mean - this does raise the event, but it does not raise the command. Is there something similar to this <code>RaiseEvent</code> but just for Command? If there is not - how can I instantiate <code>ExecutedRoutedEventArgs</code>? Is it possible?</p>
  
  <p>Lastly - please do not tell me how to <code>avoid</code> calling the command.</p>