Windows Phone 7 中的过渡效果
我目前正在 Visual studio 2010 Express Edition For Windows Phone 7 中工作。我想在应用程序的各个位置应用溶解、淡入淡出、滑动等过渡效果。我是 Windows Phone 7 的新手,所以无法理解如何以及在哪里开始? 我还从 HLSL Shader Effect Lab 下载了 WPFSLFx 库..?但不知道如何使用它?
I am currently working in Visual studio 2010 Express Edition For Windows Phone 7.I want to apply transition effects like dissolve,fading,slide at various places in my application.I am a newbie in windows phone 7 so not able to understand how and where to start?
Also I downloaded WPFSLFx library from HLSL Shader Effect Lab..?But no idea how to use it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
从此处下载 wp7 工具包:
http://silverlight.codeplex.com/releases/view/55034< /a>
并使用页面转换。
它们使用起来非常简单,只需在页面中添加一些xaml
即可:<工具包:NavigationInTransition> <工具包:NavigationInTransition.Backward> <工具包:TurnstileTransition Mode="BackwardIn"/> <工具包:NavigationInTransition.Forward> <工具包:TurnstileTransition Mode="ForwardIn"/> <工具包:TransitionService.NavigationOutTransition> <工具包:NavigationOutTransition> <工具包:NavigationOutTransition.Backward> <工具包:TurnstileTransition Mode="BackwardOut"/> <工具包:NavigationOutTransition.Forward> <工具包:TurnstileTransition Mode="ForwardOut"/>
这是一个教程:
http ://www.windowsphonegeek.com/articles/wp7-transitions-in-deep--key-concepts-and-api
Download the wp7 toolkit from here:
http://silverlight.codeplex.com/releases/view/55034
And use the page transitions.
They are very simple to use, just some xaml added to the page:
<toolkit:TransitionService.NavigationInTransition> <toolkit:NavigationInTransition> <toolkit:NavigationInTransition.Backward> <toolkit:TurnstileTransition Mode="BackwardIn"/> </toolkit:NavigationInTransition.Backward> <toolkit:NavigationInTransition.Forward> <toolkit:TurnstileTransition Mode="ForwardIn"/> </toolkit:NavigationInTransition.Forward> </toolkit:NavigationInTransition> </toolkit:TransitionService.NavigationInTransition> <toolkit:TransitionService.NavigationOutTransition> <toolkit:NavigationOutTransition> <toolkit:NavigationOutTransition.Backward> <toolkit:TurnstileTransition Mode="BackwardOut"/> </toolkit:NavigationOutTransition.Backward> <toolkit:NavigationOutTransition.Forward> <toolkit:TurnstileTransition Mode="ForwardOut"/> </toolkit:NavigationOutTransition.Forward> </toolkit:NavigationOutTransition> </toolkit:TransitionService.NavigationOutTransition>
Here is a tutorial:
http://www.windowsphonegeek.com/articles/wp7-transitions-in-depth--key-concepts-and-api
一种可能的方法是使用 Windows Phone 的 Expression Blend,它是免费开发人员工具的一部分: http://create.msdn.com/en-us/home/getting_started
你可以先看一下Expression Blend参考文档:
http://msdn.microsoft.com/en -us/library/ff979338%28v=Expression.40%29.aspx
具体来说,看看这里的“动画行为”:
http://msdn.microsoft.com/en -us/library/ff979326%28v=Expression.40%29.aspx
一旦 Blend 生成了这个初始 XAML,最好进一步研究它,这有望为您提供足够的基础来编写一些自己也有类似的行为。
One possible approach is to use Expression Blend for Windows Phone, which is part of the free developer tools: http://create.msdn.com/en-us/home/getting_started
You can have a look at the Expression Blend reference documentation beforehand:
http://msdn.microsoft.com/en-us/library/ff979338%28v=Expression.40%29.aspx
Specifically, look at the "Animation behaviors" here:
http://msdn.microsoft.com/en-us/library/ff979326%28v=Expression.40%29.aspx
Once Blend has generated this initial XAML, it is a good idea to study it a little further, which will hopefully give you sufficient ground to write some similar behaviors on your own.