title: WPF XAML How to write a trigger or multitrigger for datagrid?
body: <p>1 if you select the cell, set row background on a white colour </p>
  
  <p>and </p>
  
  <p>2 if you select the cell and row background is yellow, does not change the row background</p>
  
  <p>I write this code for first condition, but I don't know how to make for first and second conditions together. Maybe I need a MultiTrigger ? :  </p>
  
  <pre><code>                                &lt;DataGrid.Resources&gt;
                                      &lt;SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Transparent"/&gt;
                                          &lt;Style TargetType="DataGridCell"&gt;
                                              &lt;Style.Triggers&gt;
                                                  &lt;Trigger Property="IsSelected"
                                                              Value="True"&gt;
                                                      &lt;Setter Property="Background"
                                                              Value="White" /&gt;
                                                      &lt;Setter Property="Foreground"
                                                              Value="Black" /&gt;
                                                  &lt;/Trigger&gt;
                                              &lt;/Style.Triggers&gt;
                                          &lt;/Style&gt;
  
                                  &lt;/DataGrid.Resources&gt;
  </code></pre>