Ejemplo n.º 1
0
 void OnPointerPressed(object sender, PointerRoutedEventArgs e)
 {
     _pointerType = C1InputEventArgs.GetPointerType(e);
     if (_pointerType != C1PointerDeviceType.Touch)
     {
         Complete(e);
         _origin  = C1InputEventArgs.GetPosition(e, null);
         _lastPos = _origin;
         if (RaiseDragStarting(e))
         {
             if (!_actualCaptureElementOnMouseDown || TryCaptureMouse(e))
             {
                 _pointerPressed = true;
             }
             if (_pointerPressed && (_actualInitialThreshold == 0.0))
             {
                 Start(e);
             }
             if (_useRightButton)
             {
                 e.Handled = true;
             }
         }
     }
 }
Ejemplo n.º 2
0
 void OnManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
 {
     _pointerType = C1InputEventArgs.GetPointerType(e);
     if ((_pointerType == C1PointerDeviceType.Touch) || !_listenPointerEvents)
     {
         Complete(e);
         _origin = C1InputEventArgs.GetPosition(e, null);
         _manipulationStarted = RaiseDragStarting(e);
         if (_manipulationStarted && (_actualInitialThreshold == 0.0))
         {
             Start(e);
         }
     }
 }