Ejemplo n.º 1
0
 private void GameMapControl_TargetCameraChanged(MapControl sender, MapTargetCameraChangedEventArgs args)
 {
     if ((args.ChangeReason == MapCameraChangeReason.UserInteraction) && (lastAutoPosition != null))
     {
         ReactivateMapAutoUpdateButton.Visibility = Visibility.Visible;
     }
 }
Ejemplo n.º 2
0
 MapCameraChangeReason IMapTargetCameraChangedEventArgsResolver.ChangeReason(MapTargetCameraChangedEventArgs e) => e.ChangeReason;
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the camera change reason.
 /// </summary>
 /// <param name="e">The requested <see cref="MapTargetCameraChangedEventArgs"/>.</param>
 /// <returns>The reason the camera changed.</returns>
 public static MapCameraChangeReason ChangeReason(this MapTargetCameraChangedEventArgs e) => Resolver.ChangeReason(e);
Ejemplo n.º 4
0
 MapCamera IMapTargetCameraChangedEventArgsResolver.Camera(MapTargetCameraChangedEventArgs e) => e.Camera;
Ejemplo n.º 5
0
 /// <summary>
 /// Gets the camera position corresponding to the <see cref="MapControl.TargetCameraChanged"/> event.
 /// </summary>
 /// <param name="e">The requested <see cref="MapTargetCameraChangedEventArgs"/>.</param>
 /// <returns>The camera position corresponding to the <see cref="MapControl.TargetCameraChanged"/> event.</returns>
 public static MapCamera Camera(this MapTargetCameraChangedEventArgs e) => Resolver.Camera(e);