none

none

  • NA
  • 91
  • 0

Load one image at a time

Jan 20 2018 7:14 PM
Hello guys,
I'm using uwp (C#) to create an app for an olympus camera.
(The camera acts as an Web server, and the comunication is over HTTP)
I have to display a huge grid with the thumbnails of the pictures and for this I have a list with the urls (strings) binded to the image list in xaml... and I have 2 issues here:
 1. The Camera accepts just a few request at a time, and with my approach, the xaml will try to load all the images at the same time.
      Is there a nice way of loading one image at a time from the xaml? I don't know... some kind of 'magic' that loads the image just after all images before are loaded :).
 
2.  Load just the images that are intro scroll view
 
Is there any way to combine this 2 issues into one super elegant solution?
My thoughts to keep track of the images loaded when I create the url list, and load the next manually, and check if the image is intro view will be the worst code ever written :))
 
I know there's something better
 
Thank you 

Answers (2)