【发布时间】:2011-06-20 17:26:20
【问题描述】:
这适用于 DataGridRow..
<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>
【问题讨论】:
标签: wpf datagrid wpf-controls wpfdatagrid