Animation effects of Windows Phone development

Source: Internet
Author: User

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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.