예제 #1
0
 static void swipeDetector_GeneralSwipe(object sender, SwipeDetectorGeneralEventArgs e)
 {
     if (Swipe != null)
     {
         Swipe(sender, e);
     }
 }
 protected void OnGeneralSwipe(object sender, SwipeDetectorGeneralEventArgs e)
 {
     if (e.SelectDirection == Direction.Left)
     {
         Debug.WriteLine("Left");
         if (PrevSlide != null)
         {
             PrevSlide();
         }
     }
     else if (e.SelectDirection == Direction.Right)
     {
         Debug.WriteLine("Right");
         if (NextSlide != null)
         {
             NextSlide();
         }
     }
 }
예제 #3
0
 void swipeDetector_GeneralSwipe(object sender, SwipeDetectorGeneralEventArgs e)
 {
     this.viewModel.Text = "Swipe " + e.SelectDirection.ToString() + " " + DateTime.Now.ToString();
 }
예제 #4
0
 void swipeDetector_GeneralSwipe(object sender, SwipeDetectorGeneralEventArgs e)
 {
     this.viewModel.Text = "Swipe " + e.SelectDirection.ToString() + " " + DateTime.Now.ToString();
 }
예제 #5
0
 public SwipeEventArgs(SwipeDetectorGeneralEventArgs e)
 {
     Angle = e.Angle;
     Velocity = e.Velocity;
     if (!Enum.TryParse<SwipeDirection>(e.SelectDirection.ToString(), out Direction))
     {
         Direction = SwipeDirection.Illigal;
     }
 }
예제 #6
0
 void swipeDetector_GeneralSwipe(object sender, SwipeDetectorGeneralEventArgs e)
 {
     SwipeDetected(sender, new SwipeEventArgs(e));
 }
예제 #7
0
 static void swipeDetector_GeneralSwipe(object sender, SwipeDetectorGeneralEventArgs e)
 {
     if (Swipe != null)
         Swipe(sender, e);
 }