我使用下面的代码从我的 winodws phone 7 应用程序中的 URL 加载图像。
Uri uri = new Uri("http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/80000/5000/100/85108/85108.strip.print.gif", UriKind.Absolute)
image1.Source = new BitmapImage(uri);
它对我来说很好。但是图像是异步加载的,当我想在那里显示某种忙碌指示符时,如果此类 URL 上不存在图像,那么我想显示一些默认图像。我怎样才能做到这一点?