void OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { if (isMoveMode) { MainScrollViewer.Cursor = Cursors.Arrow; MainScrollViewer.ReleaseMouseCapture(); lastDragPoint = null; } }