Home > Web Front-end > HTML Tutorial > wp8.1 Study8: Page transition and Theme animations (Page transition and Theme animations)_html/css_WEB-ITnose

wp8.1 Study8: Page transition and Theme animations (Page transition and Theme animations)_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:52:38
Original
1067 people have browsed it

1. There are animations (Animation) in WP8.1:

Page navigation (default is rotating Turnstile), PointerDown/up (default is tilting), page rotation, MenuFlyout Appear and wait

2. Page transition (Page transition)

1. The default animation is Turnstile.

2. In addition to the default animation, we can also use ContinuumNavigationTransitionInfo, Stagger, Slide and other similar transitions.

3. Override the default transition/animation

(1) In the control, we can do this, the XAML code is as follows:

<!--如在控件ListView中--!><ListView x:Name="groupListView"                       ItemsSource="{Binding AllGroups}"                      SelectionChanged="lstGroups_SelectionChanged"                       ItemTemplate="{StaticResource RecipeGroupDataTemplate}"                       CommonNavigationTransitionInfo.IsStaggerElement="True"/><!--如在控件TextBlock中--!><TextBlock Text="{Binding Title}"  Grid.Column="1" Grid.Row="0"                            Style="{StaticResource ListViewItemTextBlockStyle}" Margin="10,0,0,0"                           ContinuumNavigationTransitionInfo.IsExitElement="True"/>
Copy after login

<!--GridView--!><Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">        <Grid.ChildrenTransitions>            <TransitionCollection>                <EntranceThemeTransition/>            </TransitionCollection>        </Grid.ChildrenTransitions>        <Grid.RowDefinitions>            <RowDefinition Height="140"/>            <RowDefinition Height="*"/>        </Grid.RowDefinitions>
Copy after login

(Note: EntranceThemeTransition can be applied when the content of the page is loaded for the first time, and then be rendered, so that the first content rendering can provide a different visual.)

(2), change the default transition screen of the page

<Page.Transitions>        <TransitionCollection>            <NavigationThemeTransition>                <NavigationThemeTransition.DefaultNavigationTransitionInfo>                    <SlideNavigationTransitionInfo />                </NavigationThemeTransition.DefaultNavigationTransitionInfo>            </NavigationThemeTransition>        </TransitionCollection>    </Page.Transitions>
Copy after login

3. Summary:

1. Theme transition can be applied A single XAML element with UIElement.Transitions attribute or can be applied to a transition attribute with a specific theme, such as ContentControl.ContentTransitions

2. Noteworthy transitions: AddDeleteThemeTransition, EntranceThemeTransition, PopupThemeTransition, ReorderThemeTransition, RepositionThemeTransition., etc. More

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template