One of the nice feature of the Image control is that we can specified an Uri as the ImageSource and the image is automatically downloaded for us. This is great! However, the control doesn’t seem to have a property indicating if the image loading is in progress or not.
Is there a property telling us the status (Downloading, Downloaded, etc.) of the Image control?
Thanks!
As long as your ImageSource is a BitmapImage you could use the BitmapImage.DownloadCompleted event. The only problem I have found so far is that it only works from C#, so you would lose some flexibility. I’m guessing you could access that event from XAML, but I’m not sure how. The following sample starts loading the image with the click of a button, and updates a label when the image finished loading.
XAML:
Code:
Hope it helps!