But I need the view to starts showing from middle of the list, and if scrolling up and down, the items should be incrementally loaded like already happens when scrolling down. Does anyone know how to do this using IncrementalLoadingCollection or can suggest a solution? Grateful.
CodePudding user response:
But I need the view to starts showing from middle of the list, and if scrolling up and down, the items should be incrementally loaded like already happens when scrolling down.
I have to say we can't implement above with IncrementalLoadingCollection
, because it will not detect listview end to top. For your requirement you could refer to my previous reply.
And listen scrollViewer.VerticalOffset
value, if the value turn into 0, you could call load more method, then insert new items into the head of collection. And please note you need make sure VerticalOffset value large than 0 when listview loaded. That could make listview can scroll up at fist.