title: What event(s) trigger a command in a button?
body: <p>so i have a question relating to a project i'm working on: </p>
  
  <p>what events are used to trigger a command in a button control? is it only the click event?</p>
  
  <p>because when i click on a button my command will be executed after my mouse button is released? so thats why i want to know. </p>
  
  <pre><code>&lt;Button x:Name="ClickButton" Content="Click here" HorizontalAlignment="Left" Margin="325,123,0,0" VerticalAlignment="Top" Width="75" Command="{Binding ClickHereCommand}"/&gt;
  </code></pre>
  
  <p>Code in the ViewModel</p>
  
  <pre><code>  public ICommand ClickHereCommand =&gt; (new CommandHandler(() =&gt; IsGoingUp(), _canExecute));
  
      public void IsGoingUp()
      {
        Console.WriteLine("Moving up...");
      }
  </code></pre>