title: EditMode in DataGrid with single click via XAML triggers
body: <p>I have DataGrid, if I want edit value in cell I must perform double click for on this and cursor appear here (with one click it just select appropriate cell)..!</p>
  
  <p>May I make (via Xaml triggers) that with single click on cells they aren't just selected, but entered in EditMode at once and when I switch between cells with arrows they also enter in EditMode?</p>
  
  <p>Here my current revised code</p>
  
  <pre><code>   &lt;Page.Resources&gt;
      &lt;grd:LenghthToVisibility x:Key="LenghthToVisibility"/&gt;
      &lt;grd:StringToSystemIconConverter x:Key="StringToSystemIconConverter"/&gt;
      &lt;grd:booleanConverter x:Key="booleanConverter"/&gt;
      &lt;DataGrid.CellStyle&gt;
          &lt;Style TargetType="{x:Type DataGridCell}"&gt;
              &lt;Setter Property="IsTabStop" Value="False" /&gt;
              &lt;Setter Property="Focusable" Value="False" /&gt;
          &lt;/Style&gt;
        &lt;Style x:Key="RightCellStyle" TargetType="DataGridCell"&gt;
          &lt;Setter Property="HorizontalAlignment" Value="Right" /&gt;
      &lt;/Style&gt;
      &lt;Style x:Key="RightAlignedCell" TargetType="{x:Type DataGridCell}"&gt;
          &lt;Setter Property="Template"&gt;
              &lt;Setter.Value&gt;
                  &lt;ControlTemplate TargetType="{x:Type DataGridCell}"&gt;
                      &lt;Grid Background="{TemplateBinding Background}"&gt;
                          &lt;ContentPresenter HorizontalAlignment="Right" VerticalAlignment="Center"/&gt;
                      &lt;/Grid&gt;
                  &lt;/ControlTemplate&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
          &lt;Style.Triggers&gt;
              &lt;Trigger Property="DataGridCell.IsSelected" Value="True"&gt;
                  &lt;Setter Property="IsEditing" Value="True" /&gt;
                  &lt;Setter Property="Background" Value="#356815" /&gt;
                  &lt;Setter Property="Foreground" Value="#e2fce2" /&gt;
              &lt;/Trigger&gt;
             &lt;/Style.Triggers&gt;
      &lt;/Style&gt;
          &lt;/DataGrid.CellStyle&gt;
      &lt;/Page.Resources&gt;
  </code></pre>
  
  <p>Thanks.</p>
  
  <p>I have 2 strange errors and refresh my code above:
  1) "Error 5 The attachable property 'CellStyle' was not found in type 'DataGrid'.
  2) "Error 2 The tag 'DataGrid.CellStyle' does not exist in XML namespace 'schemas.microsoft.com/winfx/2006/xaml/presentation'."</p>