I have several items in a list view in WPF. I'm wanting to add some items to the next "page" when they reach beyond the viewing area. However, I don't want scrolling available. I disable the scrolling.
<ListView ScrollViewer.HorizontalScrollBarVisibility="Disabled">
I don't want scrolling at all, I only want to know if there are items beyond the scrolling. Currently I limit the list by number of items on the page, however my items are not same size nor would I know the size of the screen so this needs to be adjustable.
Although this is a solution and works, it doesn't appear to be good on performance need another answer.
In order to speed up performance I now tempNumItemsPerPage = tempNumItemsPerPage -2;
1) Added an Event handler for the scrollchange in the constructor
2) Added the Event onto my listview
3) Add the scrollchanged code
The only issue I have is it resets the page everytime seeing if the scrollbar is off [not visible to the eye].