private void UserControl_MouseLeave(object sender, MouseEventArgs e) { if (IoC.GetInstance<ArrowCreationManager>().InMotion) { IoC.GetInstance<ArrowCreationManager>().SetTo(null); } else if (RightDragStarted) { Pointer_OnRightButtonDragReleased(this, new MouseManagerEventArgs()); } }