Windows Phone 7动画使用Expression Blend 4 [英] Windows phone 7 animation using expression blend 4

查看:73
本文介绍了Windows Phone 7动画使用Expression Blend 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将像GlassBehavior这样的不同动画应用于页面,照片像书本页面一样旋转,Microsoft Visual Studio 2010 Express中的照片幻灯片显示用于电话,电话中的表达混合4.

How to apply diffent animation like GlassBehavior to page,photos turn like book page,photo slide show in Microsoft Visual Studio 2010 express for phone and expression blend 4 for phone.

推荐答案

好吧,我只能将您指向一个包含您需要的所有教程,视频和入门套件的链接:
了解Microsoft Expression Blend

祝你一切顺利!

Sandeep.
Well, I can only point you to a link that has all the tutorials, videos and starter kits you need:
Learn Microsoft Expression Blend

Wish you all the best!

Sandeep.


不使用表达式blend
您可以只使用XAML代码来实现该目标

代码:
Without using the expression blend
you may just use the XAML code to achieve that

Code:
<phone:phoneapplicationpage.resources>
       <storyboard x:name="ShowRectangle1">
           <objectanimationusingkeyframes storyboard.targetproperty="Width" storyboard.targetname="Rectangle1">
               <discreteobjectkeyframe keytime="00:00:00.03" value="25" />
               <discreteobjectkeyframe keytime="00:00:00.06" value="50" />
               <discreteobjectkeyframe keytime="00:00:00.09" value="75" />
               <discreteobjectkeyframe keytime="00:00:00.11" value="100" />
               <discreteobjectkeyframe keytime="00:00:00.15" value="125" />
               <discreteobjectkeyframe keytime="00:00:00.18" value="150" />
               <discreteobjectkeyframe keytime="00:00:00.21" value="175" />
               <discreteobjectkeyframe keytime="00:00:00.24" value="200" />
               <discreteobjectkeyframe keytime="00:00:00.28" value="250" />
               <discreteobjectkeyframe keytime="00:00:00.31" value="300" />
               <discreteobjectkeyframe keytime="00:00:00.34" value="350" />
               <discreteobjectkeyframe keytime="00:00:00.37" value="400" />
               <discreteobjectkeyframe keytime="00:00:00.40" value="450" />
               <discreteobjectkeyframe keytime="00:00:00.43" value="500" />
               <discreteobjectkeyframe keytime="00:00:00.46" value="550" />
               <discreteobjectkeyframe keytime="00:00:00.49" value="595" />
           </objectanimationusingkeyframes>
       </storyboard></phone:phoneapplicationpage.resources>



在前面的代码中,您定义了一个名为"ShowRectangle1"的情节提要...
然后确定它的目标对象是"Rectangle1"
并将目标属性设置为宽度"

那么每个关键时间将具有该对象的宽度值(Rectangle1)

此代码将在包含矩形的.xaml页面中
在页面后面的代码中,您只需将其添加到事件处理程序中,例如说Page_loaded:



in the previous code you define a storyboard called "ShowRectangle1"...
then decide what it''s target object, that will be the "Rectangle1"
and the targeted property that will be "Width"

then each keytime will have a value of the width for that object(Rectangle1)

this code will be in the .xaml page that contains the rectangle
and in the code behind page you just add this to event handler let''s say Page_loaded:

ShowRectangle1.Begin();


就是这个


This is it


这篇关于Windows Phone 7动画使用Expression Blend 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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