Beispiel #1
0
 private bool MoveThresholdPassed(TouchEventArgs e)
 {
     Point currentPoint = e.GetTouchPoint(this).Position;
     Point firstPoint = e.GetIntermediateTouchPoints(this)[0].Position;
     double dX = currentPoint.X - firstPoint.X;
     double dY = currentPoint.Y - firstPoint.Y;
     if (Math.Abs(dX) > 4 || Math.Abs(dY) > 4)
     {
         return true;
     }
     return false;
 }