3
这个工程只是DataGridRow很好..Datagrid的悬停不与备用行颜色的工作 - WPF
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Background" Value="{StaticResource RolloverBrush}" />
<Setter Property="Foreground" Value="#000" />
</Trigger>
但是当我添加这些时,鼠标悬停样式不工作..
<Trigger Property="ItemsControl.AlternationIndex" Value="0">
<Setter Property="Background" Value="{StaticResource LightRowBrush0}" />
</Trigger>
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
<Setter Property="Background" Value="{StaticResource LightRowBrush1}" />
</Trigger>
我很抱歉,我应该检查.. – 2011-02-03 14:48:45