A simple library to display animated GIF images in WPF, usable in XAML or in code.
A simple library to display animated GIF images in WPF, usable in XAML or in code.
Nuget package available here: WpfAnimatedGif.
A simple library to display animated GIF images in WPF, usable in XAML or in code.
It's very easy to use: in XAML, instead of setting the Source property, set the AnimatedSource attached property to the image you want:
You can also specify the repeat behavior (the default is 0x, which means it will use the repeat count from the GIF metadata):
And of course you can also set the image in code:
var image = new BitmapImage();
image.BeginInit();
image.UriSource = new Uri(fileName);
image.EndInit();
ImageBehavior.SetAnimatedSource(img, image);
See the wiki for more details on usage.
Image control; no need to use a specific controlRun build.cmd.
Note: the library's version number is determined by MinVer based on Git history and tags. A consequence of this is that if you build the project outside a Git repository (e.g. if you just download sources), you'll get a version number of 0.0.0.0. So, in order to build with the correct version number, make sure you're in a Git clone of the project, and that your clone has the tags from the upstream project (git fetch upstream --tags, assuming your remote for the upstream project is named upstream).
No open issues yet, or sync has not completed.