protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); Debug.Assert(this.owner != null, "Must have an owning UI at this point."); if (this.Capture && e.Button == this.owner.ActionMouseButton && this.ControlBoundingRectangle.Contains(e.Location) && RadDragDropService.ShouldBeginDrag(e.Location, this.dragStart)) { this.owner.OnItemDrag(this, e); } }
protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); if (!this.Capture || e.Button != this.owner.ActionMouseButton || (!this.ControlBoundingRectangle.Contains(e.Location) || !RadDragDropService.ShouldBeginDrag(e.Location, this.dragStart))) { return; } this.owner.OnItemDrag(this, e); }