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(); } } }
void swipeDetector_GeneralSwipe(object sender, SwipeDetectorGeneralEventArgs e) { this.viewModel.Text = "Swipe " + e.SelectDirection.ToString() + " " + DateTime.Now.ToString(); }
void swipeDetector_GeneralSwipe(object sender, SwipeDetectorGeneralEventArgs e) { this.viewModel.Text = "Swipe " + e.SelectDirection.ToString() + " " + DateTime.Now.ToString(); }
public SwipeEventArgs(SwipeDetectorGeneralEventArgs e) { Angle = e.Angle; Velocity = e.Velocity; if (!Enum.TryParse<SwipeDirection>(e.SelectDirection.ToString(), out Direction)) { Direction = SwipeDirection.Illigal; } }
void swipeDetector_GeneralSwipe(object sender, SwipeDetectorGeneralEventArgs e) { SwipeDetected(sender, new SwipeEventArgs(e)); }
static void swipeDetector_GeneralSwipe(object sender, SwipeDetectorGeneralEventArgs e) { if (Swipe != null) Swipe(sender, e); }