private void XySegmentDraggingBase_OnDragDelta(object sender, DragDelta e)
        {
            var info = e as XySegmentDragEventArgs;

            if (info == null)
            {
                return;
            }
            info.Cancel = info.NewYValue < 1;
        }
Beispiel #2
0
 private void DeltaDrag(double x, double y)
 {
     DragDelta?.Invoke(
         this,
         new DragDeltaEventArgs(
             ViewHelper.PhysicalToLogicalPixels(x - _startX),
             ViewHelper.PhysicalToLogicalPixels(y - _startY)
             )
         );
 }
Beispiel #3
0
 private void xBorder_MouseMove(Object sender, MouseEventArgs e)
 {
     if (isCaptured)
     {
         var currentPosition = GetMousePosition();
         DragDelta?.Invoke(this, new DragDeltaEventArgs(currentPosition.X - lastPosition.X, currentPosition.Y - lastPosition.Y));
         lastPosition = currentPosition;
         e.Handled    = true;
     }
     Debug.WriteLine("mouse move");
 }
Beispiel #4
0
 protected virtual void OnDragDelta(Dock position, double delta)
 {
     DragDelta?.Invoke(this, position, delta);
 }
 protected override void OnThumbDragDelta(DragDeltaEventArgs e)
 {
     base.OnThumbDragDelta(e);
     DragDelta?.Invoke(this, e);
 }
Beispiel #6
0
 internal void DeltaDrag(Point location)
 {
     DragDelta?.Invoke(this, new DragDeltaEventArgs(location.X - _startLocation.X, location.Y - _startLocation.Y));
 }