private void AllowMove() { if (_canMove) { return; } _canMove = true; HwndSource.RemoveHook(MoveHook); }