c# - Preloading Images in Windows RT app -
i have windows store app running on windows rt includes listbox of images. there's quite few of them when loading them first time painting process quite obvious. know there's caching mechanism running behind scene , i'd use preload first few images @ top of list list appears instantly.
is there way that?
i've found solution.
irandomaccessstream stream = await storagefile.openasync(fileaccessmode.read); bitmapimage bitmapimage = new bitmapimage(); if (await bitmapimage.setsourceasync(stream)) { image1.source = bitmapimage; } there's no flickering way.
Comments
Post a Comment