开发者

Setting animation repeatbehaviour to forever through c# silverlight

开发者 https://www.devze.com 2023-02-14 20:38 出处:网络
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 throug

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

精彩评论

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