/// <summary>
        /// Raises the DragStart event.
        /// </summary>
        /// <param name="mousePt">Mouse point at time of event.</param>
        /// <param name="offset">Offset of mouse compared to element.</param>
        /// <param name="c">Control that starts the drag operation.</param>
        protected virtual void OnDragStart(Point mousePt, Point offset, Control c)
        {
            // Convert point from client to screen coordinates
            mousePt = Target.OwningControl.PointToScreen(mousePt);
            DragStartEventCancelArgs ce = new DragStartEventCancelArgs(mousePt, offset, c);

            DragStart?.Invoke(this, ce);

            // If event is not cancelled then allow dragging
            _dragging = !ce.Cancel;
        }
Ejemplo n.º 2
0
 private void OnDragStart(object sender, DragStartEventCancelArgs e)
 {
     Navigator.InternalDragStart(e, null);
 }
Ejemplo n.º 3
0
 private void OnDragStart(object sender, DragStartEventCancelArgs e)
 {
     _navigator.InternalDragStart(e, _page);
 }