예제 #1
0
 private new void ManipulationCompleted(object sender, ManipulationCompletedRoutedEventArgs e)
 {
     var trans = e.Cumulative.Translation;
     double DeltaX = Math.Abs(trans.X);
     if (Math.Abs(trans.Y) * 1.2 < DeltaX && DeltaX > 50)
     {
         if (trans.X > 0)
         {
             navAnimate.Edge = EdgeTransitionLocation.Right;
             edge = navAnimate.Edge;
             this.Frame.Navigate(typeof(MainPage));
         }
     }
 }
예제 #2
0
 private new void ManipulationCompleted(object sender, ManipulationCompletedRoutedEventArgs e)
 {
     var trans = e.Cumulative.Translation;
     double DeltaX = Math.Abs(trans.X);
     if (Math.Abs(trans.Y) * 1.2 < DeltaX && DeltaX > 50)
     {
         if (trans.X < 0)
         {
             navAnimate.Edge = EdgeTransitionLocation.Left;
             edge = navAnimate.Edge;
             DisplayBingImage.Stop();
             DisplayNowTime.Stop();
             this.Frame.Navigate(typeof(MainPage2),DailyForecast);
         }
     }
 }