Esempio n. 1
0
        /// <summary>
        /// Touch Double Tap
        /// </summary>
        protected override void OnTouchDoubleTap(MapViewModel sender, MapTouchEventArgs args)
        {
            var subArgs = new MapMouseEventArgs(args);

            this.OnMouseLeftButtonDoubleClick(sender, subArgs);
            args.Handled = subArgs.Handled;
        }
Esempio n. 2
0
        /// <summary>
        /// Touch Down event
        /// </summary>
        protected override void OnTouchDown(MapViewModel sender, MapTouchEventArgs args)
        {
            _mouseHoverX = -1;
            _mouseHoverY = -1;

            args.Handled = true;
        }
Esempio n. 3
0
        /// <summary>
        /// Touch Up event
        /// </summary>
        protected override void OnTouchUp(MapViewModel sender, MapTouchEventArgs args)
        {
            var subArgs = new MapMouseEventArgs(args);

            OnMouseLeftButtonUp(sender, subArgs);
            args.Handled = subArgs.Handled;
        }
Esempio n. 4
0
        /// <summary>
        /// Touch Down event
        /// </summary>
        protected override void OnTouchDown(MapViewModel sender, MapTouchEventArgs args)
        {
            // Simulate a move
            var subArgs = new MapMouseEventArgs(args);

            OnMouseLeftButtonDown(sender, subArgs);
            args.Handled = subArgs.Handled;
        }
Esempio n. 5
0
        /// <summary>
        /// Touch Move event
        /// </summary>
        protected override void OnTouchMove(MapViewModel sender, MapTouchEventArgs args)
        {
            if (MovedEnoughSinceLast(args.X, args.Y))
            {
                SetViewAvailability(false);

                _mouseHoverX = args.X;
                _mouseHoverY = args.Y;

                // Raise a request to check the street view status
                RaiseRequestCheckStreetViewStatus(args.Location.Coordinate);
            }
        }
Esempio n. 6
0
        /// <summary>
        /// Touch Up event
        /// </summary>
        protected override void OnTouchUp(MapViewModel sender, MapTouchEventArgs args)
        {
            args.Handled = true;

            // Only show street view when there is a street view image
            if (CanViewImage)
            {
                // Request to show street view
                RaiseRequestShowStreetView(args.Location.Coordinate);
            }

            // Cancel the current interaction mode
            this.Stop();
        }
Esempio n. 7
0
 /// <summary>
 /// Leaving touch
 /// </summary>
 protected override void OnTouchLeave(MapViewModel sender, MapTouchEventArgs args)
 {
     OnMouseLeave(sender, new MapMouseEventArgs(args));
 }
Esempio n. 8
0
 /// <summary>
 /// Entering touch events
 /// </summary>
 protected override void OnTouchEnter(MapViewModel sender, MapTouchEventArgs args)
 {
     OnMouseEnter(sender, new MapMouseEventArgs(args));
     args.Handled = true;
 }