<p>In the following code below:</p>

<pre><code>Image img = new Image();
img.Source = new BitmapImage(new Uri("http://someURL/somefilename.jpg", UriKind.Absolute));
</code></pre>

<p>how can I determine if the image successfully loaded (when there's a valid URI)? i.e., The URI is a valid format, but the file may not exist.  </p>

```
Image
```
has an
```
ImageFailed
```
event.
```
BitmapSource
```
(base for
```
BitmapImage
```
) has an
```
IsDownloading
```
property, as well as
```
DownloadProgress
```
,
```
DownloadCompleted
```
, and
```
DownloadFailed
```
events.