Exemple #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }
            if (disposing)
            {
                ClearWindowGesture();

                BorderWindow.InterceptTouchEvent -= OnWinInterceptedTouch;

                borderPanGestureDetector?.Dispose();
                borderPinchGestureDetector?.Dispose();
                backgroundColor?.Dispose();
                minimalizeIcon?.Dispose();
                maximalizeIcon?.Dispose();
                closeIcon?.Dispose();
                leftCornerIcon?.Dispose();
                rightCornerIcon?.Dispose();
                timer?.Dispose();
                windowView?.Dispose();
                borderView?.Dispose();
                rootView?.Dispose();
            }
            disposed = true;
        }
Exemple #2
0
        private void ClearWindowGesture()
        {
            if (isWinGestures)
            {
                winPanGestureDetector.Dispose();
                winTapGestureDetector.Dispose();

                isWinGestures = false;
                BorderWindow.Remove(windowView);
                BorderWindow.InterceptTouchEvent += OnWinInterceptedTouch;
            }
        }