private void Pointer_OnRightButtonDragMove(object sender, MouseEventArgs e) { if (RightDragStarted) { var endPoint = e.GetPosition(NodeContainer); var xDistance = endPoint.X - _exploreStartLocation.X; var yDistance = endPoint.Y - _exploreStartLocation.Y; _exploreStartLocation = endPoint; MoveMap(xDistance, yDistance); } }