Remove Highlight Effect from ListViewItem

前端 未结 7 1348
星月不相逢
星月不相逢 2020-12-01 04:11

In a ListView there are ListviewItems where they must not change appearance when the mouse is over them or they are selected.

I tried to a

相关标签:
7条回答
  • 2020-12-01 05:08

    I had the same problem, but none of the answers helped me. Searching on the web i found this solution and it worked:

            <ListView.Resources>
                <Style TargetType="{x:Type ListViewItem}">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type ListViewItem}">
                                <GridViewRowPresenter />
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </ListView.Resources>
    
    0 讨论(0)
提交回复
热议问题