c# - How to cache downloaded images -
i using below code direct bind data list including images
void listpostcomingsoon_completed(object sender, listpostcomingsooncompletedeventargs e) { comingsoonlist.itemssource = e.result; }
and list<> structure below
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();
how can achieve image caching(the image show separately once it's downloaded)?
i have got solution you. jetimageloader, created application, need load, cache , show big amount of logos, icons , on.
it can used binding converter, you should not change code! update xamls!
please, check out samples in repository, you'll love ;)
features:
- caching on disk
- caching in memory
- fully asynchronous
- available binding converter or programmatically code
- fully open source, fork , improve it!
here example:
<image source="{binding imageurl, converter={staticresource myappjetimageloaderconverter}}"/>
p.s. sorry, copying answer questions, image caching on windows phone huge problem , want share solution, can use , improve developers community
Comments
Post a Comment