You can use a MediaTimeline element to make the animation loop forever:
EDIT: The solution above does not seem to be working with GIF files whose size exceeds a few kilobytes. The issue apparently come from Windows Media Player (it can be reproduced with WMP itself). So, YMMV.