Step 1:
Introduce namespace:
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit">
Step 2:
Set the following code outside the grid:
In the XAML file:
Toolkit: the animation that transitionservice. navigationintransition comes in.
Toolkit: navigationintransition
Toolkit: navigationintransition. Backward: move back to the animation
Toolkit: navigationintransition. Forward: Enter the animation
Toolkit: transitionservice. navigationouttransition
Toolkit: navigationouttransition
Toolkit: navigationouttransition. Backward: exit the animation
Toolkit: navigationouttransition. Forward: Forward and exit Animation
-------------------------------------- Various Animation Parameters ----------------------------------------
Toolkit: slidetransition fly into animation
Mode
Slideupfadein flies up
Slideupfadeout fly up
Slidedownfadein flies down
Slidedownfadeout
Slideleftfadein flies to the left
Slideleftfadein flies to the left
Sliderightfadein flies to the right
Sliderightfadein flies to the right
Toolkit: rolltransition 360 rotating Animation
Toolkit: rotatetransition rotation Animation
Mode
In180clockwise 180 clockwise Transfer
Out180clockwise 180 clockwise Transfer
In180counterclockwise 180 counterclockwise Transfer
Out180counterclockwise 180
In90clockwise 90 clockwise Transfer
Out90clockwise 90 clockwise Transfer
In90counterclockwise 90 counterclockwise Transfer
Out90counterclockwise 90 clockwise Transfer
Toolkit: swiveltransition vertical flip Animation
Mode
Backwardin forward
Backwardout
Forwardin forward Transfer
Forwardout
Fullscreenin full screen transfer-in
Fullscreenout
Toolkit: turnstiletransition flip Animation
Mode
Backwardin backward flip
Backwardout flip back
Forwardin forward
Forwardout
Step 3:
It is also a key step. In app. XAML private void initializephoneapplication (), add
Rootframe = new transitionframe (); (replace the original one)