MapControlDataHelper.TransitFeatureRightTapped 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當使用者按下並保留傳輸功能,或使用滑鼠右鍵按一下它時發生。 MapControlTransitFeatureRightTappedEventArgs的實例會提供此事件的資料。
注意
此 API 不適用於所有 Windows 應用程式。 除非您的開發人員帳戶是由 Microsoft 特別布建,否則呼叫此 API 會在執行時間失敗。 如需此 API 和 Windows.Services.Maps.LocalSearch 命名空間的詳細資訊,請與您的 Microsoft 帳戶小組代表合作。
// Register
event_token TransitFeatureRightTapped(TypedEventHandler<MapControl, MapControlTransitFeatureRightTappedEventArgs const&> const& handler) const;
// Revoke with event_token
void TransitFeatureRightTapped(event_token const* cookie) const;
// Revoke with event_revoker
MapControlDataHelper::TransitFeatureRightTapped_revoker TransitFeatureRightTapped(auto_revoke_t, TypedEventHandler<MapControl, MapControlTransitFeatureRightTappedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapControlTransitFeatureRightTappedEventArgs> TransitFeatureRightTapped;
function onTransitFeatureRightTapped(eventArgs) { /* Your code */ }
mapControlDataHelper.addEventListener("transitfeaturerighttapped", onTransitFeatureRightTapped);
mapControlDataHelper.removeEventListener("transitfeaturerighttapped", onTransitFeatureRightTapped);
- or -
mapControlDataHelper.ontransitfeaturerighttapped = onTransitFeatureRightTapped;
Public Custom Event TransitFeatureRightTapped As TypedEventHandler(Of MapControl, MapControlTransitFeatureRightTappedEventArgs)