private void SetupElementForCustomGestureRecognition(UIElement target, UIElement reference)
        {
            var gestureRecognizer = new CustomGestureRecognizer();

            gestureRecognizer.GestureSettings = CustomGestureSettings.MultiTap;
            gestureRecognizer.MultiTapped    += GestureRecognizer_MultiTapped;

            _customProcessor = new CustomManipulationInputProcessor(gestureRecognizer, target, reference);
        }
        public CustomManipulationInputProcessor(CustomGestureRecognizer gestureRecognizer, UIElement target, UIElement reference)
        {
            _recognizer = gestureRecognizer;
            _element    = target;
            _reference  = reference;

            // Set up pointer event handlers.
            // These receive input events that are used by the gesture recognizer.
            _element.PointerPressed  += OnPointerPressed;
            _element.PointerMoved    += OnPointerMoved;
            _element.PointerReleased += OnPointerReleased;
            _element.PointerCanceled += OnPointerCanceled;
        }
 private void GestureRecognizer_MultiTapped(CustomGestureRecognizer sender, MultiTappedEventArgs args)
 {
     UpdateDisplay("MultiTap", args.TouchCount);
 }