internal C1DragDeltaEventArgs(C1DragHelper helper, RoutedEventArgs originalArgs, C1PointerDeviceType pointerType, Point deltaTranslation, Point cumulativeTranslation,
     bool isInertial)
     : base(helper, originalArgs, pointerType)
 {
     DeltaTranslation = deltaTranslation;
     CumulativeTranslation = cumulativeTranslation;
     IsInertial = isInertial;
 }
 internal C1DragStartingEventArgs(C1DragHelper helper, RoutedEventArgs originalArgs, C1PointerDeviceType pointerType, C1DragHelperMode mode,
     bool captureElementOnPointerPressed, double initialThreshold)
     : base(helper, originalArgs, pointerType)
 {
     Mode = mode;
     CaptureElementOnPointerPressed = captureElementOnPointerPressed;
     InitialThreshold = initialThreshold;
 }
 internal C1DragStartedEventArgs(C1DragHelper helper, RoutedEventArgs originalArgs, C1PointerDeviceType pointerType, Point origin, C1DragDirection direction)
     : base(helper, originalArgs, pointerType)
 {
     Origin = origin;
     Direction = direction;
 }
 public C1InputEventArgs(RoutedEventArgs originalArgs, C1PointerDeviceType pointerType)
 {
     OriginalEventArgs = originalArgs;
     PointerDeviceType = pointerType;
 }
 internal C1DragEventArgs(C1DragHelper dragHelper, RoutedEventArgs originalArgs, C1PointerDeviceType pointerType)
     : base(originalArgs, pointerType)
 {
     DragHelper = dragHelper;
 }
 internal C1DragInertiaStartedEventArgs(C1DragHelper helper, RoutedEventArgs originalArgs, C1PointerDeviceType pointerType, Point finalVelocity, double desiredDeceleration)
     : base(helper, originalArgs, pointerType)
 {
     Velocity = finalVelocity;
     DesiredDeceleration = desiredDeceleration;
 }
Example #7
0
 private void OnMouseButtonDown(object sender, MouseButtonEventArgs e)
 {
     _pointerType = C1InputEventArgs.GetPointerType(e);
     Complete(e);
     _origin = C1InputEventArgs.GetPosition(e, null);
     _lastPos = _origin;
     if (RaiseDragStarting(e))
     {
         if (!_actualCaptureElementOnMouseDown || TryCaptureMouse(e))
         {
             _pointerPressed = true;
         }
         if (_pointerPressed && _actualInitialThreshold == 0)
         {
             Start(e);
         }
     }
 }
Example #8
0
 private void OnManipulationStarted(object sender, ManipulationStartedEventArgs e)
 {
     _pointerType = C1InputEventArgs.GetPointerType(e);
     Complete(e);
     _manipulationStarted = RaiseDragStarting(e);
     if (_manipulationStarted)
     {
         _origin = C1InputEventArgs.GetPosition(e, null);
         if (_actualInitialThreshold == 0)
         {
             Start(e);
         }
     }
 }
 internal C1DragCompletedEventArgs(C1DragHelper helper, RoutedEventArgs originalArgs, C1PointerDeviceType pointerType, Point cumulativeTranslation)
     : base(helper, originalArgs, pointerType)
 {
     CumulativeTranslation = cumulativeTranslation;
 }