Endless animation?
Is it possible to make DoubleAnimation continue forever (no loop, just continue with开发者_StackOverflow中文版out stop)?
Animations and StoryBoards in WPF have a RepeatBehavior property that you can set to "Forever". This will tell your animation to repeat forever until you tell it to stop.
http://msdn.microsoft.com/en-us/library/system.windows.media.animation.timeline.repeatbehavior.aspx
Since it is technically impossible to continue the animation forever (Double has a certain maximum value), the closest you could get is animate to Double.MaxValue in the according amount of time you should be able to calculate.
However, we may be able to give you a better solution if you tell us what exactly you need this animation for.
Without a loop implies you have new frames to display in the animation. So this question is equivalent to "can I produce a movie than runs forever?" Unless you can automatically generate some animation content (which computationally is perfectly feasible) - the answer is "no".
However, for examples of "endless" animations, look at any of the many flash pages online. For example;
http://flintparticles.org/blog/examples
精彩评论