private void XySegmentDraggingBase_OnDragDelta(object sender, DragDelta e) { var info = e as XySegmentDragEventArgs; if (info == null) { return; } info.Cancel = info.NewYValue < 1; }
private void DeltaDrag(double x, double y) { DragDelta?.Invoke( this, new DragDeltaEventArgs( ViewHelper.PhysicalToLogicalPixels(x - _startX), ViewHelper.PhysicalToLogicalPixels(y - _startY) ) ); }
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"); }
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); }
internal void DeltaDrag(Point location) { DragDelta?.Invoke(this, new DragDeltaEventArgs(location.X - _startLocation.X, location.Y - _startLocation.Y)); }