private void ClearWindowGesture() { if (isWinGestures) { winPanGestureDetector.Dispose(); winTapGestureDetector.Dispose(); isWinGestures = false; BorderWindow.Remove(windowView); BorderWindow.InterceptTouchEvent += OnWinInterceptedTouch; } }