コード例 #1
0
 protected override Task HandleKeyDownAsync(MapViewKeyEventArgs k)
 {
     // only called when 'handled' in OnToolKeyDown
     if (k.Key == Key.Up)
     {
         // Key.Up => zoom out
         return(ActiveMapView.ZoomOutFixedAsync(TimeSpan.FromSeconds(1)));
     }
     // Key.Down => zoom in
     // else if (k.Key == Key.Down)
     {
         return(ActiveMapView.ZoomInFixedAsync(TimeSpan.FromSeconds(1)));
     }
 }