private void Grid_MouseUp_Left(object sender, MouseButtonEventArgs a) { // Release the mouse capture TheOtherGrid.ReleaseMouseCapture(); // Hide the drag selection box. selectionBox_Left.Visibility = Visibility.Collapsed; Point mouseUpPos_Left = a.GetPosition(TheOtherGrid); }