예제 #1
0
 protected virtual void OnGestureTrackerChanged(IGestureTracker oldTracker, IGestureTracker newTracker)
 {
     if (oldTracker != null)
     {
         oldTracker.InputElement = null;
         oldTracker.Gestured -= OnGesture;
     }
     if (newTracker != null)
     {
         newTracker.InputElement = this;
         newTracker.Gestured += OnGesture;
     }
 }
 public GestureEventArgs(IGestureTracker tracker, GestureEventArgs args)
 {
     _gestureTrackers.AddRange(args.GestureTrackers);
     _gestureTrackers.Add(tracker);
     Gesture = args.Gesture;
 }
 public GestureEventArgs(IGestureTracker tracker, Gesture gesture)
 {
     _gestureTrackers.Add(tracker);
     Gesture = gesture;
 }