Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
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.
Posted

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.
 
Share this answer
 
Without using the expression blend
you may just use the XAML code to achieve that

Code:
XML
<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>


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:
C#
ShowRectangle1.Begin();

This is it
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900