MapControlDataHelper.TransitFeatureRightTapped 事件

定义

当用户按住某个传输功能或使用鼠标右键单击它时发生。 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) 

事件类型

适用于