Udostępnij za pośrednictwem


MapControlDataHelper.TransitFeatureClick Event

Definition

Occurs when the user taps a transit feature or clicks on it with the left mouse button. An instance of MapControlTransitFeatureClickEventArgs provides data for this event.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to this API will fail at runtime. For more information about this API and the Windows.Services.Maps.LocalSearch namespace, please work with your Microsoft Account Team representative.

// Register
event_token TransitFeatureClick(TypedEventHandler<MapControl, MapControlTransitFeatureClickEventArgs const&> const& handler) const;

// Revoke with event_token
void TransitFeatureClick(event_token const* cookie) const;

// Revoke with event_revoker
MapControlDataHelper::TransitFeatureClick_revoker TransitFeatureClick(auto_revoke_t, TypedEventHandler<MapControl, MapControlTransitFeatureClickEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapControlTransitFeatureClickEventArgs> TransitFeatureClick;
function onTransitFeatureClick(eventArgs) { /* Your code */ }
mapControlDataHelper.addEventListener("transitfeatureclick", onTransitFeatureClick);
mapControlDataHelper.removeEventListener("transitfeatureclick", onTransitFeatureClick);
- or -
mapControlDataHelper.ontransitfeatureclick = onTransitFeatureClick;
Public Custom Event TransitFeatureClick As TypedEventHandler(Of MapControl, MapControlTransitFeatureClickEventArgs) 

Event Type

Applies to