title: WPF override DataGrid RowHeader template and manage to select rows still
body: <p>I have overriden the default row header style to use my custom button:</p>
  
  <pre><code>&lt;Style x:Key="RowHeaderStyle" TargetType="DataGridRowHeader"&gt;
      &lt;Setter Property="Template"&gt;
          &lt;Setter.Value&gt;
              &lt;ControlTemplate TargetType="DataGridRowHeader"&gt;
                  &lt;Button HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{StaticResource RowHeaderButton}" /&gt;
              &lt;/ControlTemplate&gt;
          &lt;/Setter.Value&gt;
      &lt;/Setter&gt;
  &lt;/Style&gt;
  </code></pre>
  
  <p>The problem of course is that clicking the button no longer selects the row. Will I have to call a custom method on the IsPressed event? How would I know the row index? How would you go about doing it?</p>
  
  <p>Thanks!</p>