Exemple #1
0
 private void DeltaDrag(double x, double y)
 {
     DragDelta?.Invoke(
         this,
         new DragDeltaEventArgs(
             ViewHelper.PhysicalToLogicalPixels(x - _startX),
             ViewHelper.PhysicalToLogicalPixels(y - _startY)
             )
         );
 }
Exemple #2
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");
 }
Exemple #3
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);
 }
Exemple #5
0
 internal void DeltaDrag(Point location)
 {
     DragDelta?.Invoke(this, new DragDeltaEventArgs(location.X - _startLocation.X, location.Y - _startLocation.Y));
 }