Original Post
I'm creating an application where I have many photos on display at once. My problem is loading them in a suitable manner. I want to have it in a similar way as Windows Explorer does. As in, when the user clicks on a folder/album the thumbnails will be loaded on a background thread, and as a photo gets loaded, the UI reflects the change. I only want this when the user SELECTS that folder though; so when they de-select a folder, the thumbnails that were loaded, will be... err.. un-loaded. Is that even possible? In my photo class I have a Source property that is of type ImageSource. The XAML uses this property. So what would be the best solution to this problem? I just tried using a BackgroundWorker but it says the object (I guess the photo object) belongs to a different thread so it can't change (i.e. load the thumbnail) the Source property. Thanks.