title: WPF button click and command doesn't work together MVVM
body: <p>I'm developing some wpf application, using mvvm. I'm trying to use button click event and command together but command never get executed. Also when I use only command without click event it works perfect. Here is the code:</p>
  
  <pre><code>&lt;ControlTemplate x:Key="reminderDataTemplate"&gt;          
      &lt;Grid&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="25" /&gt;
              &lt;RowDefinition Height="150" /&gt;
              &lt;RowDefinition Height="20" /&gt;
          &lt;/Grid.RowDefinitions&gt;
          &lt;Label Grid.Row="0" Content="New reminder:" HorizontalAlignment="Left" /&gt;
          &lt;TextBox Text="{Binding Path=ReminderText, UpdateSourceTrigger=PropertyChanged}" Grid.Row="1" Height="150" Width="200" HorizontalAlignment="Left"/&gt;
          &lt;Button Name="btnSaveReminder" Grid.Row="2" Content="Save" Width="auto" Height="20" HorizontalAlignment="Left" Click="btnSaveReminder_Click"  Command="{Binding Path= btnSaveReminder}"  /&gt;
      &lt;/Grid&gt;
  &lt;/ControlTemplate&gt;
  </code></pre>
  
  <p>Why is this happening?</p>
  
  <p>Just to mention that I must use click and command together becouse my view and viewmodel are in different projects.</p>
  
  <p><strong>UPDATE:</strong>
  Also to say that, when I use click and command together in buttons outside of control template, everything works perfect.</p>