title: Loading images in UWP using pagination in Grid View
body: <p>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. </p>
  
  <p><strong>What's done till now?</strong></p>
  
  <p>I have used one Grid view &amp; 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 &amp; finally set the list to grid view's source.</p>
  
  <p>Reference: <a href="https://docs.microsoft.com/en-us/windows/uwp/files/quickstart-managing-folders-in-the-music-pictures-and-videos-libraries" rel="nofollow noreferrer">Link</a></p>
  
  <p><strong>What's the problem?</strong></p>
  
  <p>As I am reading images one by one, I think it will be slow when images in that folder will increase upto say 10k. </p>
  
  <p><strong>Query</strong></p>
  
  <p>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 &amp; when user will scroll down then load 40 more images?</p>
  
  <p>Secondly, can we somehow know how default photos app does this thing? </p>
  
  <p>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.</p>
  
  <p>Any help will be appreciated.</p>