title: How to change the blue color of selected datagrid rows
body: <p>Well, I have seen this code to do that:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;DataGrid.RowStyle&gt;
      &lt;Style TargetType="DataGridRow"&gt;
  
          &lt;Style.Triggers&gt;
              &lt;Trigger Property="IsSelected" Value="True"&gt;
                  &lt;Setter Property="Background" Value="Black"/&gt;
                  &lt;Setter Property="Foreground" Value="Green"&gt;
                  &lt;/Setter&gt;
              &lt;/Trigger&gt;
          &lt;/Style.Triggers&gt;
  
          &lt;Setter Property="Background"&gt;                        
              &lt;Setter.Value&gt;
                  &lt;MultiBinding Converter="{StaticResource ucComponentesColorFilaMultiValueConverter}"&gt;
                      &lt;Binding ElementName="dgdComponentes" Path="ItemsSource" /&gt;
                      &lt;Binding ElementName="dgdComponentes" Path="SelectedItems" /&gt;
                      &lt;Binding ElementName="CurrentItem" /&gt;
                  &lt;/MultiBinding&gt;
              &lt;/Setter.Value&gt;
          &lt;/Setter&gt;
      &lt;/Style&gt;
  &lt;/DataGrid.RowStyle&gt;
  </code></pre>
  
  <p>Really the code is the style trigger, the setter property is for other cases, but I add the code of this can affect to the result.</p>
  
  <p>I would like  to change the selected row background, that by default is blue, and I want to other color according to some conditions. For example, if a register is added, then if I select the row it would be green, if this row is unselected, it would be light green.</p>
  
  <p>I am be able to change the color of the rows as I want, but when I select it, always is blue.</p>
  
  <p>Thanks.</p>