title: How to make a WPF DataGrid with alternating row colors, and a fix color section (ignoring alternation)
body: <p>I have a datagrid that I'm trying to make resemble:
  <img src="https://i.stack.imgur.com/yof6R.png" alt="enter image description here"></p>
  
  <p>I'm using the <code>AlternatingRowBackground</code> attribute to perform the alternating colors.  For the fixed color section, I have XAML that resembles:</p>
  
  <pre><code>            &lt;DataGrid.Resources&gt;
                  &lt;Style TargetType="{x:Type DataGridRow}"&gt;
                      &lt;Style.Triggers&gt;
                          &lt;DataTrigger Binding="{Binding Path=ShouldBeFixedColor}" Value="True"&gt;
                              &lt;DataTrigger.Setters&gt;
                                  &lt;Setter Property="Background" Value="Blue" /&gt;
                              &lt;/DataTrigger.Setters&gt;
                          &lt;/DataTrigger&gt;
                      &lt;/Style.Triggers&gt;
                  &lt;/Style&gt;
              &lt;/DataGrid.Resources&gt;
  </code></pre>
  
  <p>The problem with this approach is that the "alternating color" takes precedence over the fixed color style trigger.  So, at the bottom instead of blue-blue-blue it is blue-gray-blue.</p>
  
  <p>Any ideas on how to archive the desired coloring?  I'd rather do this all at the XAML level if possible.</p>
  
  <p>Thanks!</p>