private void PageDragEnd(Point pt)
{
if (DragPageNotify != null)
{
// Let the target transfer the page across
if (DragPageNotify.PageDragEnd(this, new PointEventArgs(PointToScreen(pt))))
{
// Should we remove the page that can been transferred
if (RemovePages)
Nodes.Remove(_dragNode);
}
// Transfered the page to the target, so do not dispose it
_dragPage = null;
// No longer dragging
_dragging = false;
Capture = false;
}
}