0
我有图片链接像http://images.test.com/profiles/profile_28044497_75sq_1359604729.jpg“ 现在我想在图像控件添加这一形象在C夏普的Windows Phone 8 我一直在使用System.Windows包括.Media但我不能得到的BitmapImage类展在C尖锐的Windows Phone 8的图像控制图像使用URI
我有图片链接像http://images.test.com/profiles/profile_28044497_75sq_1359604729.jpg“ 现在我想在图像控件添加这一形象在C夏普的Windows Phone 8 我一直在使用System.Windows包括.Media但我不能得到的BitmapImage类展在C尖锐的Windows Phone 8的图像控制图像使用URI
您需要添加以下语句using
:
using System.Windows.Media.Imaging;
然后
image.Source = new BitmapImage(new Uri("http://images.test.com/profiles/profile_28044497_75sq_1359604729.jpg", UriKind.Absolute));