Silverlight中的平滑动画

编程入门 行业动态 更新时间:2024-10-26 11:27:44
本文介绍了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中的平滑动画

本文发布于:2023-11-27 20:54:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639566.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:平滑   动画   Silverlight

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!