private void OnDragMove(object sender, PointEventArgs e) { _navigator.InternalDragMove(e); }
private void OnDragEnd(object sender, PointEventArgs e) { Navigator.InternalDragEnd(e); }
internal void InternalDragMove(PointEventArgs e) { if (_pageDragging && (DragPageNotify != null)) DragPageNotify.PageDragMove(this, e); }
internal void InternalDragEnd(PointEventArgs e) { if (_pageDragging && (DragPageNotify != null)) { if (DragPageNotify.PageDragEnd(this, e)) { // Success, so remove the pages from the navigator foreach (KryptonPage page in _dragPages) if (Pages.Contains(page)) Pages.Remove(page); } } _pageDragging = false; OnAfterPageDrag(new PageDragEndEventArgs(true, _dragPages)); _dragPages = null; }
/// <summary> /// Occurs when the mouse moves during the drag operation. /// </summary> /// <param name="sender">Source of the page drag; can be null.</param> /// <param name="e">Event arguments containing the new screen point of the mouse.</param> public void PageDragMove(object sender, PointEventArgs e) { _workspace.InternalPageDragMove(sender as KryptonNavigator, e); }
/// <summary> /// Occurs when drag operation completes with pages being dropped. /// </summary> /// <param name="sender">Source of the page drag; can be null.</param> /// <param name="e">Event arguments containing the new screen point of the mouse.</param> /// <returns>Drop was performed and the source can perform any removal of pages as required.</returns> public bool PageDragEnd(object sender, PointEventArgs e) { return _workspace.InternalPageDragEnd(sender as KryptonNavigator, e); }