title: Change background of rows based on a variable
body: <p>I'm having some trouble changing the background based on a variable. I have tried several things and I thought this would work but it says background is not defined. Am I putting this too early or is there a bigger problem?</p>
  
  <pre><code>&lt;RowDefinition&gt;
      &lt;RowDefinition.Style&gt;
          &lt;Style&gt;
              &lt;Setter Property="Background" Value="White"/&gt;
              &lt;Style.Triggers&gt;
                  &lt;DataTrigger Binding="{Binding RowData.Row.Priority}" Value="H"&gt;
                      &lt;Setter Property="Background" Value="Red"/&gt;
                  &lt;/DataTrigger&gt;
                  &lt;DataTrigger Binding="{Binding RowData.Row.Priority}" Value="A"&gt;
                      &lt;Setter Property="Background" Value="Yellow"/&gt;
                  &lt;/DataTrigger&gt;
              &lt;/Style.Triggers&gt;
          &lt;/Style&gt;
      &lt;/RowDefinition.Style&gt;
  &lt;/RowDefinition&gt;
  </code></pre>