With the release of Mango downloading bitmaps from the internet was moved to the background. That is indeed a very good feature, but it lacks something crucial;

It does not give you an option to display a local stored image while you wait for the download to complete.

Enter the DelayLoadImage control!

This control uses all the benefits of a BitMapImage (async download and image caching) and it gives you the option to set a local bitmap as default image. When the image is downloaded from the internet the default image will fade-out gracefully and the new image will gracefully fade-in. In my opinion this is better then an image appearing out of thin air.

Example use;

<krempel:DelayLoadImage DefaultImageSource="/Resources/standard.png" ActualImageSource="" />

Yes, it’s that simple Glimlach

Download the new release from codeplex!

Now as promised in my previous post an update to the HTMLTextBlock.


  • Styles for H1, H2, H3 and Anchor elements
  • BackgroundBrush for BlockQuote elements
  • Fixed imagesize problem
  • Added Command and event handler to handle navigation

Also part of the release is a multibinding solution that I found here.

I’m in the process of writing a NuGet package for the package, so stay tuned!


~ by Matthijs Krempel on March 19, 2012.

One Response to “DelayLoadImage”

  1. … Thanks!

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )

Connecting to %s

%d bloggers like this: