This project has moved. For the latest updates, please go here.

WPF Animated GIF 1.4.0 beta1

Rating: No reviews yet
Downloads: 194
Change Set: 21857
Released: Dec 9, 2012
Updated: Dec 10, 2012 by tom103
Dev status: Beta Help Icon

Recommended Download

Application WpfAnimatedGif-1.4.0-beta1.zip
application, 1545K, uploaded Dec 10, 2012 - 194 downloads

Release Notes

  • Added support for controlling the animation from code (pause/resume/seek). (work item)

In order to control the animation, you need to get the ImageAnimationController for the Image control:

var controller = ImageBehavior.GetAnimationController(imageControl);

You can then use the controller to pause, resume, or seek the animation:

// Pause the animation
controller.Pause();

// Resume the animation (or restart it if it was completed)
controller.Play();

// Go to the last frame
controller.GotoFrame(controller.FrameCount - 1);

If you intend to control the animation manually, you probably don't want it to start automatically. In this case you can set the AutoStart attached property to false:

<Image Name="img"
       gif:ImageBehavior.AnimatedSource="animated.gif"
       gif:ImageBehavior.AutoStart="False" />

There is also a CurrentFrameChanged event that you can use to be notified when the current frame has changed (in order to show a progress bar, for instance).

Reviews for this release

No reviews yet for this release.