<
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
>
时间: 2024-10-15 16:02:15