Beispiel #1
0
 void MultiScaleImage_Translate(object sender, GestureTranslateEventArgs e)
 {
     if (GesturesInterpreter.Fingers.Count == 1 && GesturesInterpreter.CurrentGesture >= TouchGesture.MOVE_WEST && GesturesInterpreter.CurrentGesture <= TouchGesture.MOVE_SOUTHEAST)
     {
         Point p0 = e.Finger.Position;
         p0 = _msi.ElementToLogicalPoint(p0);
         Point p1 = _lastlocation;
         Point shift = new Point(p0.X - p1.X, p0.Y - p1.Y);
         _msi.ViewportOrigin = new Point(_msi.ViewportOrigin.X - shift.X * 2, _msi.ViewportOrigin.Y - shift.Y * 2);
     }
 }
Beispiel #2
0
 void _gesturesinterpreter_Translate(object sender, GestureTranslateEventArgs e)
 {
 }
Beispiel #3
0
 void _gesturesinterpreter_Translate(object sender, GestureTranslateEventArgs e)
 {
     if (Translate != null) Translate(this, e);
 }