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;
 }
예제 #3
0
        public InputHandling()
        {
            InitializeComponent();

            _dragHelper = new C1DragHelper(FramePanel, C1DragHelperMode.TranslateXY | C1DragHelperMode.Inertia, captureElementOnPointerPressed: false);
            _dragHelper.DragStarting += OnDragStarting;
            _dragHelper.DragStarted += OnDragStarted;
            _dragHelper.DragDelta += OnDragDelta;
            _dragHelper.DragCompleted += OnDragCompleted;
            _dragHelper.DragInertiaStarted += OnDragInertiaStarted;

            _zoomHelper = new C1ZoomHelper(FramePanel, ctrlRequired: false);
            _zoomHelper.ZoomStarted += OnZoomStarted;
            _zoomHelper.ZoomDelta += OnZoomDelta;
            _zoomHelper.ZoomCompleted += OnZoomCompleted;

            _tapHelper = new C1TapHelper(Rectangle);
            _tapHelper.Tapped += OnTapped;
        }
 internal C1DragStartedEventArgs(C1DragHelper helper, RoutedEventArgs originalArgs, C1PointerDeviceType pointerType, Point origin, C1DragDirection direction)
     : base(helper, originalArgs, pointerType)
 {
     Origin = origin;
     Direction = direction;
 }
예제 #5
0
 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;
 }
 internal C1DragCompletedEventArgs(C1DragHelper helper, RoutedEventArgs originalArgs, C1PointerDeviceType pointerType, Point cumulativeTranslation)
     : base(helper, originalArgs, pointerType)
 {
     CumulativeTranslation = cumulativeTranslation;
 }