Click here to Skip to main content
15,877,051 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
My application uses a large number images (800+) that are stored online in a database which my application uses to connect to them. I am using a background worker to do an Async web request and add them to an ObservableCollection binded to a list.

However I am experiences long waiting times, up to a couple of minutes for 100 images.

I want to decrease this size and download 10 images at a time, so that once loaded x number are shown and the rest are added whilst the list is still fully functional.

Could anyone give me any examples of this or help?

Thank you!
Sergey Alexandrovich Kryukov 15-Sep-13 14:54pm    
This is a right idea, but what problem do you see? Do exactly what you are planning for. Those are different images, so you should not face any technical problems, compared to downloading of single or all images. The only problem would be the logic of the operations, but you are the one who should understand it better, as this is your application.
SteveBaldwin21 15-Sep-13 15:18pm    
The problem I see is the collection modified during enumeration when adding the new images.
Sergey Alexandrovich Kryukov 15-Sep-13 15:44pm    
They key is: in the order your want, already processed images are not reordered. When someone post a new image, it should be appended to the list of them, by your own requirement, and it eliminates the problem.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900