开发者

Setting animation repeatbehaviour to forever through c# silverlight

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!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜