Windows 8 Store Apps Learning (20) Animation: themeanimation (Theme Animation)

Source: Internet
Author: User
Tags split xmlns

Introduced

Re-imagine the Windows 8 Store Apps Animation

Popinthemeanimation-Animation When the control appears, Popoutthemeanimation-animation when the control disappears

Fadeinthemeanimation-Controls fade in animation, fadeoutthemeanimation-Controls fade animation

Pointerdownthemeanimation-Animation of the mouse (finger) when pressed on the control, pointerupthemeanimation-animation when the mouse (finger) is raised on the control

Swipehintthemeanimation-swipe animation of a control (when your control responds after receiving swipe), swipebackthemeanimation-the swipe animation of the control (when your control receives a swipe you do not need to do Any response)

Repositionthemeanimation-Animations when a control is repositioned

Splitopenthemeanimation-Open the animation for the split control, splitclosethemeanimation-turn off the animation for the split control

Dragitemthemeanimation, Dragoverthemeanimation, droptargetitemthemeanimation--animation effects as the name suggests, controls for collection classes

Example

1, the demonstration theme animation POPIN, popout

Animation/themeanimation/popinpopout.xaml

<page x:class= "XamlDemo.Animation.ThemeAnimation.PopInPopOut" xmlns= "http://schemas.microsoft.com/winfx/2006/ Xaml/presentation "xmlns:x=" Http://schemas.microsoft.com/winfx/2006/xaml "xmlns:local=" using: XamlDemo.Animation.ThemeAnimation "xmlns:d=" http://schemas.microsoft.com/expression/blend/2008 "xmlns:mc=" http:/ /schemas.openxmlformats.org/markup-compatibility/2006 "mc:ignorable=" D "> <grid background=" Transparent "
                    > <stackpanel margin= "0 0 0" > <StackPanel.Resources> <!--
                        Popinthemeanimation-Animation When the control appears fromhorizontaloffset-horizontal offset at the start of the control Fromverticaloffset-The vertical offset of the start position of the control--> <storyboard x:name= "Storyboardpopin"
                    ;
                <popinthemeanimation storyboard.targetname= "Border" fromhorizontaloffset= "1000" "fromverticaloffset="/> </storyboard> <!--popoutthemeanimation-animation--> <storyboard when the control disappears X:name= " Storyboardpopout "> <popoutthemeanimation storyboard.targetname=" Border "/> &l t;/storyboard> </StackPanel.Resources> <border name= "Border" borderthickness= "5"
                Borderbrush= "Red" background= "Blue" cornerradius= "ten" width= "height=", horizontalalignment= "left" > <Border.Child> <textblock text= "I am the content of Border" fontsize= "24.667" textalignment= "Center" verticalalignment= "Center"/> </Border.Child> </Border> <bu Tton name= "Btnpopin" content= "popinthemeanimation Demo" click= "btnpopin_click_1" margin= "0 0 0"/> <B
    
        Utton name= "Btnpopout" content= "popoutthemeanimation Demo" click= "btnpopout_click_1" margin= "0 0 0"/> &Lt;/stackpanel> </Grid> </Page> 

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.