2013-03-31 74 views
1

首先,我知道有人問以前的問題similar如何「向上」/「向下」動畫頁面導航?

雖然我能夠通過按照本指南here成功設置頁面動畫,但我無法找到有關向上/向下動畫的任何信息。我試圖實現的動畫是我的ApplicationBarIconButton。如果動畫是從右/左,這將是奇怪的。

任何幫助?

回答

0

下面是一些XAML中我已經在Windows Phone工具包用於:

<toolkit:TransitionService.NavigationInTransition> 
    <toolkit:NavigationInTransition> 
     <toolkit:NavigationInTransition.Backward> 
      <toolkit:SlideTransition Mode="SlideUpFadeIn"/> 
     </toolkit:NavigationInTransition.Backward> 
     <toolkit:NavigationInTransition.Forward> 
      <toolkit:SlideTransition Mode="SlideUpFadeIn"/> 
     </toolkit:NavigationInTransition.Forward> 
    </toolkit:NavigationInTransition> 
</toolkit:TransitionService.NavigationInTransition> 
<toolkit:TransitionService.NavigationOutTransition> 
    <toolkit:NavigationOutTransition> 
     <toolkit:NavigationOutTransition.Backward> 
      <toolkit:SlideTransition Mode="SlideDownFadeOut"/> 
     </toolkit:NavigationOutTransition.Backward> 
     <toolkit:NavigationOutTransition.Forward> 
      <toolkit:SlideTransition Mode="SlideDownFadeOut"/> 
     </toolkit:NavigationOutTransition.Forward> 
    </toolkit:NavigationOutTransition> 
</toolkit:TransitionService.NavigationOutTransition> 

用其他過渡是:

  • RotateIn180Clockwise
  • RotateIn180CounterClockwise
  • RotateIn90Clockwise
  • RotateIn90CounterClockwise
  • RotateOut180Clockwise
  • RotateOut180CounterClockwise
  • RotateOut90Clockwise
  • RotateOut90CounterClockwise
  • SlideDownFadeIn
  • SlideDownFadeOut
  • SlideLeftFadeIn
  • SlideLeftFadeOut
  • SlideRightFadeIn
  • SlideRightFadeOut
  • SlideUpFadeIn
  • SlideUpFadeOut
  • SwivelBackwardIn
  • SwivelBackwardOut
  • SwivelForwardIn
  • SwivelForwardOut
  • SwivelFullScreenIn
  • SwivelFullScreenOut
  • TurnstileBackw ardIn
  • TurnstileBackwardOut
  • TurnstileForwardIn
  • TurnstileForwardOut

如果你不能找到一個過渡,讓你所需要的效果,只是創建你自己的,他們只是故事板的XAML畢竟。如果您在CodePlex上查看Windows Phone工具包的源代碼,則應該有所需的所有線索。

相關問題