zoukankan      html  css  js  c++  java
  • 页面导航时,实现淡入淡出效果

    1、首先引入 toolkit 命名空间:xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
     2、在 app.xaml 文件中加入:

    <Style x:Key="SlideTransitionPageStyle" TargetType="phone:PhoneApplicationPage">
    <Setter Property="toolkit:TransitionService.NavigationInTransition">
    <Setter.Value>
    <toolkit:NavigationInTransition>
    <toolkit:NavigationInTransition.Backward>
    <toolkit:SlideTransition Mode="SlideRightFadeIn"/>
    </toolkit:NavigationInTransition.Backward>
    <toolkit:NavigationInTransition.Forward>
    <toolkit:SlideTransition Mode="SlideLeftFadeIn"/>
    </toolkit:NavigationInTransition.Forward>
    </toolkit:NavigationInTransition>
    </Setter.Value>
    </Setter>
    <Setter Property="toolkit:TransitionService.NavigationOutTransition">
    <Setter.Value>
    <toolkit:NavigationOutTransition>
    <toolkit:NavigationOutTransition.Backward>
    <toolkit:SlideTransition Mode="SlideRightFadeOut"/>
    </toolkit:NavigationOutTransition.Backward>
    <toolkit:NavigationOutTransition.Forward>
    <toolkit:SlideTransition Mode="SlideLeftFadeOut"/>
    </toolkit:NavigationOutTransition.Forward>
    </toolkit:NavigationOutTransition>
    </Setter.Value>
    </Setter>
    </Style>

    3、

    在 PhoneApplicationPage 页面加入:

    <phone:PhoneApplicationPage    Style="{StaticResource SlideTransitionPageStyle}"     >

  • 相关阅读:
    Mysql探索之索引详解,又能和面试官互扯了~
    POJ 1163
    POJ 1157
    POJ 1143
    POJ 1164
    HDU 2553
    POJ 1321
    POJ 1125
    POJ 2488
    POJ 3083
  • 原文地址:https://www.cnblogs.com/hebeiDGL/p/2433473.html
Copyright © 2011-2022 走看看