BitmapImage image = new BitmapImage(new Uri("http://www.google.com/intl/en_ALL/images/logo.gif"));
image1.Source = image;

结果Width and Height 始终是1;

解决:

That should mean the image is still downloading -- check the IsDownloading property. When the DownloadComplete event fires, the property values will be correct.
posted on 2011-04-28 18:38  princeback  阅读(193)  评论(0编辑  收藏  举报