I am creating one image picker in my UWP app wherein I want to show all images from one folder(Picture Library). It is similar to the default Photos App in Windows platform.
What's done till now?
I have used one Grid view & bind it with a list in the code behind file. I have queried the pictures folders and read the images as a stream and added in the list one by one & finally set the list to grid view's source.
Reference: Link
What's the problem?
As I am reading images one by one, I think it will be slow when images in that folder will increase upto say 10k.
Query
Can we do something like pagination in Grid View? As window size is resizable in UWP, at max 30-40 images will be shown at a time, can we load only 30 & when user will scroll down then load 40 more images?
Secondly, can we somehow know how default photos app does this thing?
P.S I have searched a lot but I don't get any way where I can optimise it more. Google, SO etc. but not getting much.
Any help will be appreciated.