Inheritance: System.EventArgs
Ejemplo n.º 1
0
        private void HandlePinch(object sender, PinchEventArgs e)
        {
            GestureView gi = (GestureView)this.Element;

            if (e.InProgress)
            {
                gi.CurrentPinchState = (gi.CurrentPinchState == GestureView.PinchGestureState.Started)
                    ? GestureView.PinchGestureState.Continuing
                    : GestureView.PinchGestureState.Started;
            }
            else
            {
                gi.CurrentPinchState = GestureView.PinchGestureState.Ended;
            }
            gi.PinchScale = e.ScaleFactor;
            gi.OnPinch();
        }
Ejemplo n.º 2
0
 private void HandlePinch(object sender, PinchEventArgs e)
 {
     GestureView gi = (GestureView)this.Element;
     if (e.InProgress)
         gi.CurrentPinchState = (gi.CurrentPinchState == GestureView.PinchGestureState.Started)
             ? GestureView.PinchGestureState.Continuing
             : GestureView.PinchGestureState.Started;
     else
         gi.CurrentPinchState = GestureView.PinchGestureState.Ended;
     gi.PinchScale = e.ScaleFactor;
     gi.OnPinch();
 }