Details for an event that provides a Point value.
Inheritance: System.EventArgs
 private void OnDragMove(object sender, PointEventArgs e)
 {
     _navigator.InternalDragMove(e);
 }
 private void OnDragEnd(object sender, PointEventArgs e)
 {
     Navigator.InternalDragEnd(e);
 }
Ejemplo n.º 3
0
 internal void InternalDragMove(PointEventArgs e)
 {
     if (_pageDragging && (DragPageNotify != null))
         DragPageNotify.PageDragMove(this, e);
 }
Ejemplo n.º 4
0
        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;
        }
Ejemplo n.º 5
0
 /// <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);
 }
Ejemplo n.º 6
0
 /// <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);
 }