I’m hosting an animated GIF in a WPF MediaElement. It works, but not continually looping. It reaches a point where the animation just stops. Is there a fix for this in WPF?
Printable View
I’m hosting an animated GIF in a WPF MediaElement. It works, but not continually looping. It reaches a point where the animation just stops. Is there a fix for this in WPF?
Is the GIF setup to loop infinitely but in WPF the loop just stops?
One option would be to use the winforms PictureBox control. If that works, then you know it is something with the WPF control you're using. If it doesn't work, then you know it is something with the GIF's animation settings.
This is what I'm referring to: https://docs.microsoft.com/en-us/dot...control-in-wpf
For what it's worth, I don't like this as a solution to your problem. It feels like a hack to use a WinForm control in lieu of a WPF control.
I'm just recommending this to rule out the issue with the image's settings.