0
我使用下面的代碼直接綁定所有的數據到列表中包括圖像如何緩存下載的圖像
void ListPostComingsoon_Completed(object sender, ListPostComingsoonCompletedEventArgs e)
{
ComingSoonList.ItemsSource = e.Result;
}
並且列表<>結構是類似下面
select new post
{
postid = (int)r.postid,
userid = (int)r.userid,
NofLikeString = r.NofLike.ToString() + " Likes",
title = r.title,
startdate = r.startdate.ToString(),
enddate = r.enddate.ToString(),
image = "http://localhost:6848/photo/" + r.image
}).ToList();
哪有我實現圖片緩存(圖片下載後單獨顯示)?
看看這個線程http ://stackoverflow.com/questions/4244662/image-control-asynchronous – outcoldman 2013-05-03 02:01:14