How to hide empty string in ListView?

I have a list and I am adding many items to this list. However, when scrolling down to the last item there is an empty line. I do not know how to get rid of it. thanks This is his image

+3
source share
3 answers

I noticed that the empty space at the bottom of the ListView is not an element. He has to do something with the layout. In particular, I suspect that the layout is controlled by the scroll bar. When messing with the Marginlist property , sometimes there is no empty space below. I have tried Margin="10". Of course, this is not a solution, but it indicates where the problem is a little better.


, , . ScrollViewer.HorizontalScrollBarVisibility="Disabled", .

+1

, , IValueConverter ListBox, .

0

When this happened, adding this to the ListView, he fixed this:

<ListView ... ScrollViewer.CanContentScroll="False"> ... </ListView>

0
source

All Articles