private void GameMapControl_TargetCameraChanged(MapControl sender, MapTargetCameraChangedEventArgs args) { if ((args.ChangeReason == MapCameraChangeReason.UserInteraction) && (lastAutoPosition != null)) { ReactivateMapAutoUpdateButton.Visibility = Visibility.Visible; } }
MapCameraChangeReason IMapTargetCameraChangedEventArgsResolver.ChangeReason(MapTargetCameraChangedEventArgs e) => e.ChangeReason;
/// <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);
MapCamera IMapTargetCameraChangedEventArgsResolver.Camera(MapTargetCameraChangedEventArgs e) => e.Camera;
/// <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);