开发者

Scale keyframe animation speed in silverlight

开发者 https://www.devze.com 2023-01-10 17:09 出处:网络
Suppose I have a storyboar开发者_JS百科d, created at runtime by some process, containing keyframe animations. Is it possible to \"scale\" the animation speed so that the animation plays faster (or slo

Suppose I have a storyboar开发者_JS百科d, created at runtime by some process, containing keyframe animations. Is it possible to "scale" the animation speed so that the animation plays faster (or slower) after it has been constructed?

I am currently trying to make the decision wether to use the built-in animation stuff or to use something like DispatcherTimer or CompositionTarget.Rendering and do the moving of objects manually. Speed control is one of the requirements I have..


Yes it is possible. The property on the Storyboard is called "SpeedRatio"

http://msdn.microsoft.com/en-us/library/system.windows.media.animation.timeline.speedratio(v=VS.95).aspx

0

精彩评论

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