How to play a GIF infinitely in XAML?
My problem is that in my code the GIF plays once and then gets stuck. I’ve already tried various ways to solve this but unfortunately nothing helped.
I tried stopping it, then setting it to position zero and playing it again. Declaring the GIF as source again didn’t help. The only thing that worked was setting the source to $null and then setting the source again. However, this creates a very ugly flickering effect.
Here is my current code: