c# - The best way load files from Isolated Storage -


in windows store app save/use files (almost images) in isolated storage.
when need present image use following:

var file = await folder.getfileasync(filename); using (var stream = await file.openasync(fileaccessmode.read)) {     obj.image = new bitmapimage();     await obj.image.setsourceasync(stream); } 

but when use 3+ images in same page have lags.
i'm looking faster solution access isolated storage files.

you can try start article optimize media resources (windows store apps using c#/vb/c++ , xaml), , couple more things:

  1. make sure if show them in listview / gridview - have enabled virtualization (you use right itemspanel supports virtualization).

  2. if need load images local storage - set binding image.source to right uri (ms-appx:/// or ms-appdata:///local/), , image control you.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -