I have a set of Image
elements that I use to download pictures. All the pictures have to be downloaded, but I wish to download the picture the user is looking at in the first place. If the user changes the viewed picture, I wish to cancel the downloads in progress to get the viewed picture as fast as possible.
To start a download I write: myImage.Source = new BitmapImage(theUri);
.
How should I cancel it?
myImage.Source = null;
?- act on the BitmapImage ?
- a better solution ?
I don't wish to download the picture by code to keep the benefit of the browser cache.