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:
make sure if show them in listview / gridview - have enabled virtualization (you use right itemspanel supports virtualization).
if need load images local storage - set binding image.source to right uri (ms-appx:/// or ms-appdata:///local/), , image control you.
Comments
Post a Comment