/// <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; }
/// <summary> /// Touch Down event /// </summary> protected override void OnTouchDown(MapViewModel sender, MapTouchEventArgs args) { _mouseHoverX = -1; _mouseHoverY = -1; args.Handled = true; }
/// <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; }
/// <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; }
/// <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); } }
/// <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(); }
/// <summary> /// Leaving touch /// </summary> protected override void OnTouchLeave(MapViewModel sender, MapTouchEventArgs args) { OnMouseLeave(sender, new MapMouseEventArgs(args)); }
/// <summary> /// Entering touch events /// </summary> protected override void OnTouchEnter(MapViewModel sender, MapTouchEventArgs args) { OnMouseEnter(sender, new MapMouseEventArgs(args)); args.Handled = true; }