title: How to add a command to a xamdatagrid cellactivated event without breaking MVVM
body: <p>i am using a XamDataGrid to display my data. Now I want to add different commands to each column. </p>
  
  <p>Using the CellActivated event on the whole grid and then binding to ActiveCell wont work since the Viewmodel would have to know about the View and how to evaluate the Column from the object returned by ActiveCell.</p>
  
  <p>I am looking for a way how to tell the XamDataGrid which command should be called.</p>
  
  <p>I imagine something like this:</p>
  
  <pre><code>&lt;igDP:Field Name="Dev"                  &gt;
     &lt;igDP:Field.Settings&gt;
        &lt;igDP:FieldSettings CellValuePresenterStyle="{StaticResource DevStyle}" ActivateCommand="{Binding DevCommand}/&gt;
     &lt;/igDP:Field.Settings&gt;
  &lt;/igDP:Field&gt;
  </code></pre>
  
  <p>I dont really care if the command has to be a property of my viewmodel or the dataitem. </p>
  
  <p>How do i implement this?</p>
  
  <p>Thank You</p>