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));