Share via


MapControlDataHelper.BusinessLandmarkRightTapped Event

Definition

Occurs when the user presses-and-holds a business location or clicks on it with the right mouse button. An instance of MapControlBusinessLandmarkRightTappedEventArgs 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 BusinessLandmarkRightTapped(TypedEventHandler<MapControl, MapControlBusinessLandmarkRightTappedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MapControlDataHelper::BusinessLandmarkRightTapped_revoker BusinessLandmarkRightTapped(auto_revoke_t, TypedEventHandler<MapControl, MapControlBusinessLandmarkRightTappedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapControlBusinessLandmarkRightTappedEventArgs> BusinessLandmarkRightTapped;
function onBusinessLandmarkRightTapped(eventArgs) { /* Your code */ }
mapControlDataHelper.addEventListener("businesslandmarkrighttapped", onBusinessLandmarkRightTapped);
mapControlDataHelper.removeEventListener("businesslandmarkrighttapped", onBusinessLandmarkRightTapped);
- or -
mapControlDataHelper.onbusinesslandmarkrighttapped = onBusinessLandmarkRightTapped;
Public Custom Event BusinessLandmarkRightTapped As TypedEventHandler(Of MapControl, MapControlBusinessLandmarkRightTappedEventArgs) 

Event Type

Applies to