Windows Phone 7 中的过渡效果

发布于 2024-10-09 09:50:08 字数 195 浏览 2 评论 0原文

我目前正在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

寄居人 2024-10-16 09:50:08

从此处下载 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

骄兵必败 2024-10-16 09:50:08

一种可能的方法是使用 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.

能怎样 2024-10-16 09:50:08
<toolkit:TransitionService.NavigationInTransition>
    <toolkit:NavigationInTransition>
        <toolkit:NavigationInTransition.Backward>
            <toolkit:SlideTransition Mode="SlideRightFadeIn"/>
        </toolkit:NavigationInTransition.Backward>
        <toolkit:NavigationInTransition.Forward>
            <toolkit:SlideTransition Mode="SlideLeftFadeIn"/>
        </toolkit:NavigationInTransition.Forward>
    </toolkit:NavigationInTransition>
</toolkit:TransitionService.NavigationInTransition>
<toolkit:TransitionService.NavigationOutTransition>
    <toolkit:NavigationOutTransition>
        <toolkit:NavigationOutTransition.Backward>
            <toolkit:SlideTransition Mode="SlideRightFadeOut"/>
        </toolkit:NavigationOutTransition.Backward>
        <toolkit:NavigationOutTransition.Forward>
            <toolkit:SlideTransition Mode="SlideLeftFadeOut"/>
        </toolkit:NavigationOutTransition.Forward>
    </toolkit:NavigationOutTransition>
</toolkit:TransitionService.NavigationOutTransition>
<toolkit:TransitionService.NavigationInTransition>
    <toolkit:NavigationInTransition>
        <toolkit:NavigationInTransition.Backward>
            <toolkit:SlideTransition Mode="SlideRightFadeIn"/>
        </toolkit:NavigationInTransition.Backward>
        <toolkit:NavigationInTransition.Forward>
            <toolkit:SlideTransition Mode="SlideLeftFadeIn"/>
        </toolkit:NavigationInTransition.Forward>
    </toolkit:NavigationInTransition>
</toolkit:TransitionService.NavigationInTransition>
<toolkit:TransitionService.NavigationOutTransition>
    <toolkit:NavigationOutTransition>
        <toolkit:NavigationOutTransition.Backward>
            <toolkit:SlideTransition Mode="SlideRightFadeOut"/>
        </toolkit:NavigationOutTransition.Backward>
        <toolkit:NavigationOutTransition.Forward>
            <toolkit:SlideTransition Mode="SlideLeftFadeOut"/>
        </toolkit:NavigationOutTransition.Forward>
    </toolkit:NavigationOutTransition>
</toolkit:TransitionService.NavigationOutTransition>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文