title: Passing a Command Parameter from a Datagrid through a Keybinding
body: <p>I've a wpf specific problem. I'm trying to delete a Row from a Datagrid, by defining a Keybinding that passes the selected Row of the Datagrid as a Commandparameter to a Command.</p>
  
  <p>This is my Keybinding:</p>
  
  <pre><code>&lt;UserControl.Resources &gt;
      &lt;Commands:CommandReference x:Key="deleteKey" Command="{Binding DeleteSelectedCommand}"/&gt;
  &lt;/UserControl.Resources&gt;
  
  &lt;UserControl.InputBindings&gt;
      &lt;KeyBinding Key="D" Modifiers="Control" Command="{StaticResource deleteKey}"/&gt;
  &lt;/UserControl.InputBindings&gt;
  </code></pre>
  
  <p>I know this basically works, because I can debug up to the DeleteSelectedCommand. However there flies an Exception because the DeleteSelectedCommand expectes a Row of the Datagrid to delete as Call Parameter.</p>
  
  <p>How can I pass the SelectedRow through the Keybinding?</p>
  
  <p>I want to do this only in the XAML, if possible, without changing the Code Behind.</p>