Results 1 to 8 of 8

Thread: Animated GIF - play looping

  1. #1

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,068

    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?

  2. #2
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,188

    Re: Animated GIF - play looping

    Is the GIF setup to loop infinitely but in WPF the loop just stops?
    "Code is like humor. When you have to explain it, itís bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  3. #3

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,068

    Re: Animated GIF - play looping

    Quote Originally Posted by dday9 View Post
    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

  4. #4
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,188

    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.
    "Code is like humor. When you have to explain it, itís bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  5. #5

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,068

    Re: Animated GIF - play looping

    Quote Originally Posted by dday9 View Post
    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?

  6. #6
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,188

    Re: Animated GIF - play looping

    "Code is like humor. When you have to explain it, itís bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

  7. #7

    Thread Starter
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,068

    Re: Animated GIF - play looping

    Quote Originally Posted by dday9 View Post
    Ok. Thanks, that's great. I'll give that a try when i have some time to.

  8. #8
    Super Moderator dday9's Avatar
    Join Date
    Mar 2011
    Location
    South Louisiana
    Posts
    11,188

    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.
    "Code is like humor. When you have to explain it, itís bad." - Cory House
    VbLessons | Code Tags | Sword of Fury - Jameram

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width