Update to post: WPF BitmapImage objects failing to raise events correctly

I wanted to clear up a previous post. As noted in a comment on the original post the DownloadCompleted and DownloadFailed events on BitmapImage objects only fire if the images are not being loaded from the internal cache. This explains the (correct) behavior that on the second iteration of bitmap loading in my test application no events fired-the single image that was being loaded was already cached.

To determine if the image has already been loaded simply check the IsDownloading property. If this is false directly after assigning the Source as a URI then the download events will not fire.

 Thanks to MS for responding quickly.

 -MGE

 

One Response to “Update to post: WPF BitmapImage objects failing to raise events correctly”

  1. Alex Says:

    Thank You

Leave a Reply