MapControlDataHelper.TransitFeatureRightTapped 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 user presses-and-holds a transit feature or clicks on it with the right mouse button. An instance of MapControlTransitFeatureRightTappedEventArgs 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 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)