标签:
<
DataGrid
AlternationCount
=
"2"
>
<
DataGrid.RowStyle
>
<
Style
TargetType
=
"{x:Type DataGridRow}"
>
<
Style.Triggers
>
<
Trigger
Property
=
"ItemsControl.AlternationIndex"
Value
=
"0"
>
<
Setter
Property
=
"Foreground"
Value
=
"Red"
/>
</
Trigger
>
</
Style.Triggers
>
</
Style
>
</
DataGrid.RowStyle
>
</
DataGrid
>
标签:
原文地址:http://www.cnblogs.com/changbaishan/p/4387450.html