Пример #1
0
        protected override void OnDetaching()
        {
            base.OnDetaching();

            _gestureInterpreter.GestureRecognized -= GestureInterpreterGestureRecognized;
            _gestureInterpreter.Unsubscribe();
            _gestureInterpreter = null;
        }
Пример #2
0
        protected override void OnAttached()
        {
            base.OnAttached();

            _gestureInterpreter = new GestureInterpreter(AssociatedObject);
            _gestureInterpreter.GestureRecognized += GestureInterpreterGestureRecognized;
            _gestureInterpreter.DebugMode          = EnableDebugMode;
        }