Silverlight 中的运动动画?
这可能是一个非常愚蠢的问题,但我发现了相互矛盾的信息。我在 WPF/VB.net 2010 中有一个项目,我想在 Silverlight 中创建一个替代版本。然而,它使用了大量的动画,尤其是运动动画。该动画的大部分都利用故事板双动画来进行平移变换或画布左/顶部更改。
我可以将此项目转换为 Silverlight 吗?
This is probably a really dumb question, but I'm finding conflicting information. I have a project in WPF/VB.net 2010 that I want to create an alternate version of in Silverlight. However, it uses heavy amounts of animation, especially motion animation. Most of this animation takes advantage of storyboard double animations for either translate transforms or canvas left/top changes.
Can I convert this project over to Silverlight?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
@Erno的答案基本上是正确的,但您需要意识到存在差异并且调试 XAML 可能是一种令人沮丧的体验。
Silverlight 和 WPF 之间肯定存在融合,并且随着时间的推移只会变得更加强大。我在 Mike Taulty 的一次演讲中谈到了这个问题,他说两者将继续共存,并且功能将在两者之间迁移。
如果没有看到您的 XAML,我无法确定,但 Silverlight 支持您提到的所有内容。
@Erno's answer is basically correct, though you need to be aware that there are differences and debugging XAML can be a frustrating experience.
There is certainly a convergence between Silverlight and WPF that will only get stronger over time. I was at a talk by Mike Taulty where this came up and he said that the two would continue to coexist and functionality would migrate between the two.
Without seeing your XAML I can't say for sure, but Silverlight supports all the things you mention.
只需复制并测试即可。 Silverlight 也有故事板、双动画和画布。
Just copy it and test. Silverlight has Storyboards, double animations and canvases too.