c# WPF How to Remove listview header seperator line?

拜拜、爱过 提交于 2021-01-28 09:26:42

问题


How to Remove this header seperator line

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

this is my ListView


回答1:


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.

If you define some container in your ItemTemplate that has a border, the solution would be similar.



来源:https://stackoverflow.com/questions/49835010/c-sharp-wpf-how-to-remove-listview-header-seperator-line

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!