我给ListViewItem设置样式的时候 的时候 出现了 一个问题 请大家帮助下
代码
<Style TargetType="ListViewItem">
<!--<Setter Property="Margin" Value="0,1,0,0"/>-->
<Setter Property="Height" Value="21"/>
<Setter Property="Foreground" Value="Black" />
<Setter Property="Background" Value="White" />
<Style.Triggers>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsSelected" Value="true" />
<Condition Property="Selector.IsSelectionActive" Value="true" />
</MultiTrigger.Conditions>
<Setter Property="Background">
<Setter.Value>
<SolidColorBrush Color="Red" />
</Setter.Value>
</Setter>
<Setter Property="BorderBrush" Value="{x:Null}" />
</MultiTrigger>
<Trigger Property="IsMouseOver" Value="true">
<Setter Property="Panel.Background" >
<Setter.Value>
<SolidColorBrush Color="#FFE6E6E7" />
</Setter.Value>
</Setter>
<Setter Property="BorderBrush" Value="{x:Null}" />
<Setter Property="Cursor" Value="Hand"/>
</Trigger>
</Style.Triggers>
</Style>
<ListView HorizontalAlignment="Stretch" Margin="0" Name="listView1"
VerticalAlignment="Stretch" BorderBrush="{x:Null}" SelectionMode="Single"
SelectionChanged="listView1_SelectionChanged" >
<ListView.View>
<GridView ColumnHeaderContainerStyle="{ StaticResource GridHeaderRight}" >
<GridViewColumn Width="100" Header="日期">
<GridViewColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path=Date}" HorizontalAlignment="Left" ></TextBlock>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
选择行的背景色 和鼠标移上去 应该是单色 但是却是 渐变 很郁闷啊 求助 谢谢