Silverlight 在WP7中显示图像控件的加载进度

Silverlight 在WP7中显示图像控件的加载进度,silverlight,image,windows-phone-7,loading,progress,Silverlight,Image,Windows Phone 7,Loading,Progress,在加载图像时,如何使用加载百分比信息获取加载进度 我有这个: Image image = new Image(); image.Source = new BitmapImage(new Uri("http://somesite.com/someimage.jpg")); 我期待着这样的事情: image.Loading += RoutedEventHandler(image_Loading); 但我找不到这样的事件。有Loaded(与加载源无关)和ImageOpen(加载源完成并影响布局过

在加载图像时,如何使用加载百分比信息获取加载进度

我有这个:

Image image  = new Image();
image.Source = new BitmapImage(new Uri("http://somesite.com/someimage.jpg"));
我期待着这样的事情:

image.Loading += RoutedEventHandler(image_Loading);
但我找不到这样的事件。有Loaded(与加载源无关)和ImageOpen(加载源完成并影响布局过程后激发)


我知道这是可能的,因为我看到其他应用程序显示图像加载进度(例如“img新闻阅读器”)。对于标准图像控件,是否有第三方控件提供此功能,或者我必须自己编写?

DownloadProgress是我要查找的事件,它隐藏在BitmapImage类中:

Image image = new Image();
BitmapImage myBitmap = new BitmapImage(new Uri("http://somesite.com/someimage.jpg", UriKind.Absolute));
myBitmap.DownloadProgress += new EventHandler<DownloadProgressEventArgs>(myBitmap_DownloadProgress);

image.Source = myBitmap;
Image Image=newimage();
BitmapImage myBitmap=新BitmapImage(新Uri(“http://somesite.com/someimage.jpg“,UriKind.Absolute”);
myBitmap.DownloadProgress+=新事件处理程序(myBitmap\u DownloadProgress);
image.Source=myBitmap;