Rss Feed
Tweeter button
Facebook button
Technorati button
Reddit button
Myspace button
Linkedin button
Webonews button
Delicious button
Digg button
Flickr button
Stumbleupon button
Newsvine button
logo

Animated GIFs in WPF

logo

If you ever tried to add a animated GIF to your image control in WPF, you’d be disappointed to find that it doesn’t play and merely shows the first in your image sequence. Here’s a combined list of ways and work arounds for this problem.

 

Here’s the best solution I found, a working animated gif control (host):

Written by Greg E. Wilson on Pragmatic TSQL Programmer.

image

http://www.solidrockstable.com/blogs/PragmaticTSQL/Lists/Posts/Post.aspx?ID=37

The animated GIF control was tested and works well in my application!

image

 


Here’s the help thread on MSDN:

http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/93d50a97-0d8d-4b18-992e-cd3200693337

In here, solutions like using the MediaElement control and Windows Forms picturebox control are suggested.

 

Here’s a thread at StackOverflow:

http://stackoverflow.com/questions/210922/how-do-i-get-an-animated-gif-to-work-in-wpf

 

Here’s a sample project with an animated gif control on codeproject:

http://www.codeproject.com/KB/WPF/animatedgifinwpf.aspx

image

2 Responses to “Animated GIFs in WPF”

Leave a Reply

You must be logged in to post a comment.

logo
logo
Powered by Wordpress