I'm just trying to make m开发者_开发知识库y basic animation run indefinitely by setting the repeatbehavior property of my animation to forever. I know I can do this and have managed to do this through the xaml but I am just wondering how to do this through the c# code and can't really find an answer.
Thanks
I can't believe no one has answered this one yet. :)
All you need to do is,
var storyboard = new Storyboard() { RepeatBehavior = RepeatBehavior.Forever };
Hope this helps!
精彩评论