开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜