c# WPF 如何删除列表视图标题分隔符行? [英] c# WPF How to Remove listview header seperator line?
本文介绍了c# WPF 如何删除列表视图标题分隔符行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何删除此标题分隔符行
How to Remove this header seperator line
<ListView ItemsSource="{Binding ...}">
<ListView.ItemTemplate>
<DataTemplate>
<Grid>
...
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
这是我的列表视图
推荐答案
除非我遗漏了什么,否则这不仅仅是将 BorderThickness
属性在 ListView 上设置为零的问题
?
Unless I'm missing something, is this not just a matter of setting the BorderThickness
property to zero on your ListView
?
<ListView ItemsSource="{Binding}" BorderThickness="0">
鉴于您的问题中提供的信息,这应该是解决方案.
That should be the solution given the information provided in your question.
如果您在 ItemTemplate
中定义了一些带有边框的容器,则解决方案将类似.
If you define some container in your ItemTemplate
that has a border, the solution would be similar.
这篇关于c# WPF 如何删除列表视图标题分隔符行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文