I am a little confused as to this class, I was hoping someone could shed some light. I know that when it downloads depends on the BitmapCreateOptions of the image.
However, when you create an absolute BitmapImage, say:
var Image = new BitmapImage(new Uri("http://...", UriKind.Absolute))
It won't download it right away, because DelayCreation is the default BitmapCreateOptions, correct?
What if you do:
var Image = new BitmapImage(new Uri("http://...", UriKind.Absolute))
Image.CreateOptions = BitmapCreateOptions.None;
Will it start downloading the image immediately after you set its BitmapCreateOptions? If so, then this has the same behavior, correct?
var Image = new BitmapImage(new Uri("http://...", UriKind.Absolute)) { CreateOptions = BitmapCreateOptions.None }
Ok, now, how does caching work for BitmapImage?
- When does a BitmapImage get "cached"?
- Do only downloaded e.g. "absolute" images get cached or local e.g. "relative" images as well?
- When/how often does the cache get refreshed?
- Does this mean that I do not need to worry about manually caching the images in Isolated Storage my Windows Phone Project?
And, finally, when do the ImageOpened, and ImageFailed events get raised?
- Do they get raised only when a BitmapImage is downloaded?
- Or do they get raised when a BitmapImage is loaded from the cache?
- Or when they get rendered on a screen?