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.
<Style.Triggers>
<Trigger Property="DateTimeColumn" Value="dateisbeforetoday" >
<Setter Property="Background" Value="Yellow" />
</Trigger>
<Trigger Property="DateTimeColumn" Value="dateaftertoday" >
<Setter Property="Background" Value="Red" />
</Trigger>
</Style.Triggers>
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.