Display GIFs in Silverlight

I have several gifs in a folder on my web server /dir/subdir/bla.gif etc.

The same server uses the Silverlight 3 /ClientBin/bla.xap .

Is there a way to show gifs in a Silverlight application?

I tried <Image x:Name=img" /> and then in setting the code this.img.Source=new BitmapImage(new Uri("/dir/subdir/bla.gif")) without success.

Any ideas are welcome.

+6
image gif silverlight
source share
2 answers

You can look at Silverlight ImageTools on Codeplex: http://imagetools.codeplex.com/

Project Description

ImageTools for Silverlight is a library that provides additional functionality for loading, saving and processing images from various sources and with various formats.

Currently, the library can load the most important png, jpg, BMP and GIF. Please review the following demo and select the image that should be displayed. If an error message appears, this means that the file is not yet supported, and I would be very happy for the comment with the attached image that you used for testing.

+6
source share

Silverlight does not support GIF. If you want to spend some money, you can buy a third-party control, for example: http://www.componentone.com/SuperProducts/ImageSilverlight/

+4
source share

All Articles