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

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -