我有这个
Application.Current.Dispatcher.Invoke((Action)delegate
{
Photo = new BitmapImage(new Uri(goodPhotoList[8]));
Photo.DownloadCompleted += delegate(object sender, EventArgs eventArgs)
{
//called only once!!
};
});
每次加载新图像时都需要调用downloadcompleted事件(来自goodPhotoList [8])
但它只能工作一次,再也不会再次发射
我在这里错过了什么?