title: WPF Control Trigger applied to DATETIME of datagrid
body: <p>I was looking to colour the rows of my datagrid as per a datetime column to which is populated by an ObjectDataProvider, my question is whether this is possible within XAML?  Mashed up some sample code of what I'd like, a datetime comparison based on one of the , then colour that row as applicable.</p>
  
  <pre><code> &lt;Style.Triggers&gt;
      &lt;Trigger Property="DateTimeColumn" Value="dateisbeforetoday" &gt;
        &lt;Setter Property="Background" Value="Yellow" /&gt;
      &lt;/Trigger&gt;
      &lt;Trigger Property="DateTimeColumn" Value="dateaftertoday" &gt;
        &lt;Setter Property="Background" Value="Red" /&gt;
      &lt;/Trigger&gt;
    &lt;/Style.Triggers&gt;
  </code></pre>
  
  <p>I was thinking of iterating my way through each row and colouring it, but I thought this would be messy, and the sorting might screw things up.</p>