-
Feb 12th, 2022, 10:37 PM
#1
Animated GIF - play looping
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?
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Feb 15th, 2022, 10:41 AM
#2
Re: Animated GIF - play looping
Is the GIF setup to loop infinitely but in WPF the loop just stops?
-
Feb 15th, 2022, 01:18 PM
#3
Re: Animated GIF - play looping
Originally Posted by dday9
Is the GIF setup to loop infinitely but in WPF the loop just stops?
Yeah. In windows picture viewer, it seems to loop infinitely (though I haven’t tested it infinitely In WPF, seems to loop for about a minute
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Feb 15th, 2022, 02:05 PM
#4
Re: Animated GIF - play looping
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.
-
Feb 15th, 2022, 02:28 PM
#5
Re: Animated GIF - play looping
Originally Posted by dday9
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.
I'm less than a week into learning WPF. Could you post an example?
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Feb 15th, 2022, 03:00 PM
#6
Re: Animated GIF - play looping
-
Feb 15th, 2022, 03:03 PM
#7
Re: Animated GIF - play looping
Originally Posted by dday9
Ok. Thanks, that's great. I'll give that a try when i have some time to.
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Feb 15th, 2022, 03:51 PM
#8
Re: Animated GIF - play looping
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|