【问题标题】:c# WPF How to Remove listview header seperator line?c#WPF如何删除listview标题分隔线?
【发布时间】:2018-04-15 04:35:36
【问题描述】:

如何删除此标题分隔线

 <ListView ItemsSource="{Binding ...}">
        <ListView.ItemTemplate>
            <DataTemplate>
                <Grid>
                    ...
                </Grid>
            </DataTemplate>
        </ListView.ItemTemplate>
    </ListView>

这是我的列表视图

【问题讨论】:

    标签: c# wpf xaml


    【解决方案1】:

    除非我遗漏了什么,这不仅仅是将ListView 上的BorderThickness 属性设置为零的问题吗?

    <ListView ItemsSource="{Binding}" BorderThickness="0">
    

    根据您问题中提供的信息,这应该是解决方案。

    如果您在 ItemTemplate 中定义一些有边框的容器,解决方案将类似。

    【讨论】:

      猜你喜欢
      • 2016-02-13
      • 1970-01-01
      • 1970-01-01
      • 2011-06-25
      • 1970-01-01
      • 2017-07-06
      • 2023-03-18
      • 1970-01-01
      • 2017-03-12
      相关资源
      最近更新 更多