Devexpress wpf animated gif

    wpf show gif
    wpf show gif image
    c
    wpf show animated gif
  • Wpf show gif
  • Wpf loading spinner!

    Note: The code in this article is out of date; the current code is hosted on GitHub.

    WPF is a great technology, but sometimes it seems to be missing some really basic features… A frequently mentioned example is the lack of support for animated GIF images.

    Wpf mediaelement gif

  • Wpf animate image
  • Wpf loading spinner
  • Wpfanimatedgif not working
  • Xamlanimatedgif
  • Actually, the GIF format itself is supported by the imaging API, but the control only shows the first frame of the animation.

    Many solutions to this problem have been proposed on technical forums and blogs, usually variations of the following approaches:

    • Use the control: unfortunately this control only supports URI like or , not the URI schema used for WPF resources; this means the image can’t be included in the resources, it has to be in a separate file.

      Furthermore, transparency for GIF images isn’t supported in , which makes the final result quite ugly

    • Use the control from Windows Forms, via a : I personnally dislike using WinForms controls in WPF, it really looks like a hack…
    • Create a custom control that inherits and handles the animation.

      Some solutions take advantage of the class from (GD

        wpf gif not working
        wpf show gif animation