MapControl.ActualCameraChanging 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于地圖相機的目前位置變更時。
// 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)
事件類型
備註
在地圖動畫期間, ActualCamera 會定義地圖相機的目前位置, 而 TargetCamera 會定義相機的最終位置。