Wpf 从ListViewItem中删除放大效果
我已经按照这个方法消除了ListView中的突出显示效果。高亮效果被正确禁用,但我仍然在鼠标上方获得放大效果。尤其是在ListView上移动时,因为它会产生模糊的效果 这是我的密码Wpf 从ListViewItem中删除放大效果,wpf,xaml,Wpf,Xaml,我已经按照这个方法消除了ListView中的突出显示效果。高亮效果被正确禁用,但我仍然在鼠标上方获得放大效果。尤其是在ListView上移动时,因为它会产生模糊的效果 这是我的密码 <ListView ItemsSource="{Binding Roles}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" > <ListView.ItemContainerStyle> <S
<ListView ItemsSource="{Binding Roles}" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<Setter Property="Focusable" Value="False"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Focusable" Value="False" />
</Trigger>
</Style.Triggers>
</Style>
</ListView.ItemContainerStyle>
</ListView>
这是:
是我愿意摆脱的行为
有人知道如何消除这种放大效应吗?而不是改变边框厚度
<Setter Property="BorderThickness" Value="0" />
通过更改边框颜色将其隐藏
<Setter Property="BorderBrush" Value="{x:Null}" />