Hi,

I think everyone would agree that showing a cute placeholder during long image loading is a good idea.

There are couple of solutions in the internet. My favourite is this – http://compiledexperience.com/blog/posts/image-placeholder-control-with-arbitrary-content . Unfortunately i encountered couple of issues with it when used it in virtualized lists. Image was never loaded, or even the placeholder disappeared.

The easiest way to reproduce is to scroll really fast and to navigate away from the page and then return back. When we navigate away – the page gets unloaded and imageOpened event doesn’t fire – this breaks control logic.

I modified code slightly so it can be used in virtualized lists.

https://www.dropbox.com/s/4ji449yfut2sd3t/ImagePlaceholder.zip?dl=0

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s