How to set alternating datagrid row color in xaml?

Mar 5, 2009 at 10:41 PM
What is the equivalent of this:

      DataGrid_Standard.AlternatingRowBackground := new SolidColorBrush( SystemColors.InfoColor );

in xaml?

I tried this:

      AlternatingRowBackground="{DynamicResource SystemColors.InfoColor}"

That didn't work.

Mar 6, 2009 at 6:49 PM
    AlternatingRowBackground="{DynamicResource {x:Static SystemColors.InfoBrushKey}}"
Mar 6, 2009 at 7:11 PM

As has been said many times, it is so simple when you know how...