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

            if (info == null)
            {
                return;
            }
            info.Cancel = info.NewYValue < 1;
        }
예제 #2
0
 private void DeltaDrag(double x, double y)
 {
     DragDelta?.Invoke(
         this,
         new DragDeltaEventArgs(
             ViewHelper.PhysicalToLogicalPixels(x - _startX),
             ViewHelper.PhysicalToLogicalPixels(y - _startY)
             )
         );
 }
예제 #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");
 }
예제 #4
0
 protected virtual void OnDragDelta(Dock position, double delta)
 {
     DragDelta?.Invoke(this, position, delta);
 }
예제 #5
0
 protected override void OnThumbDragDelta(DragDeltaEventArgs e)
 {
     base.OnThumbDragDelta(e);
     DragDelta?.Invoke(this, e);
 }
예제 #6
0
 internal void DeltaDrag(Point location)
 {
     DragDelta?.Invoke(this, new DragDeltaEventArgs(location.X - _startLocation.X, location.Y - _startLocation.Y));
 }