You can look at this SO question or you can download this CodePlex project.
From second link:
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