开发者

How to programmatically(C#) go to a certain keyframe in a silverlight animation?

开发者 https://www.devze.com 2022-12-30 23:45 出处:网络
Is there a way of going to a certain keyframe inside of a silverlight animation? For example the user clicks a button and it goes to the specified keyframe in the an开发者_如何学Goimation.You can use

Is there a way of going to a certain keyframe inside of a silverlight animation? For example the user clicks a button and it goes to the specified keyframe in the an开发者_如何学Goimation.


You can use seek method in the storyboard.

myStoryboard.Begin();
myStoryboard.Seek(new TimeSpan(0, 0, 3));

Here is some reference Storyboard.Seek Method

0

精彩评论

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

关注公众号