Silverlight中的平滑动画 [英] smooth animation in silverlight

查看:84
本文介绍了Silverlight中的平滑动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Silverlight在Windows 7手机上开发我的第一个手机应用程序.我想使文本在屏幕上水平滚动,但是当我尝试时,其运动非常生涩.我尝试使用情节提要,合成目标渲染和使用调度程序计时器都没有区别.有谁知道一种可以保证动画流畅的好方法.谢谢.

I am developing my first phone application on the windows 7 phone, using Silverlight. I want to make text scroll horizontally across the screen but when I try it the movement is very jerky. I have tried using storyboard, composition target rendering and using a dispatcher timer all with no difference. Does anyone know a good method that will guarantee smooth animation. Thanks.

推荐答案

也许您没有启用GPU加速.

App.Current.Host.Settings.EnableFrameRateCounter设置为true(如果已启用,则隐藏系统托盘)?如果在屏幕顶部看到帧率计数器,则说明已启用GPU加速.

Maybe you don''t have GPU acceleration enabled.

Set App.Current.Host.Settings.EnableFrameRateCounter to true (and hiding the system tray if it is enabled)? If you see the framerate counters at the top of the screen, you have GPU acceleration enabled.


尝试使用关键帧动画而不是DuobleAnimation. DoubleAnimations比KeyFrame更加流畅.
Try using Keyframe animation instead of DuobleAnimation. DoubleAnimations are much more jerkier than KeyFrames.


这篇关于Silverlight中的平滑动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆