MapControl.ActualCameraChanging Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the current position of the map's camera changes.
// Register
event_token ActualCameraChanging(TypedEventHandler<MapControl, MapActualCameraChangingEventArgs const&> const& handler) const;
// Revoke with event_token
void ActualCameraChanging(event_token const* cookie) const;
// Revoke with event_revoker
MapControl::ActualCameraChanging_revoker ActualCameraChanging(auto_revoke_t, TypedEventHandler<MapControl, MapActualCameraChangingEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapActualCameraChangingEventArgs> ActualCameraChanging;
function onActualCameraChanging(eventArgs) { /* Your code */ }
mapControl.addEventListener("actualcamerachanging", onActualCameraChanging);
mapControl.removeEventListener("actualcamerachanging", onActualCameraChanging);
- or -
mapControl.onactualcamerachanging = onActualCameraChanging;
Public Custom Event ActualCameraChanging As TypedEventHandler(Of MapControl, MapActualCameraChangingEventArgs)
Event Type
Remarks
During an animation of the map, the ActualCamera defines the current position of the map's camera and TargetCamera defines the final position of the camera.