问题
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