protected override Task HandleMouseDownAsync(MapViewMouseButtonEventArgs e) { // Get the map coordinates from the click point and change the Camera to zoom in or out. return(QueuedTask.Run(() => { var mapClickPnt = MapView.Active.ClientToMap(e.ClientPoint); ActiveMapView.LookAt(mapClickPnt, TimeSpan.FromSeconds(1)); // zoom out if (e.ChangedButton == MouseButton.Right) { ActiveMapView.ZoomOutFixed(TimeSpan.FromSeconds(1)); } // zoom in else if (e.ChangedButton == MouseButton.Left) { ActiveMapView.ZoomInFixed(TimeSpan.FromSeconds(1)); } })); }