Udostępnij za pośrednictwem


MapControlDataHelper.BusinessLandmarkClick Event

Definition

Occurs when the user taps a business location or clicks on it with the left mouse button. An instance of MapControlBusinessLandmarkClickEventArgs 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 BusinessLandmarkClick(TypedEventHandler<MapControl, MapControlBusinessLandmarkClickEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
MapControlDataHelper::BusinessLandmarkClick_revoker BusinessLandmarkClick(auto_revoke_t, TypedEventHandler<MapControl, MapControlBusinessLandmarkClickEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapControlBusinessLandmarkClickEventArgs> BusinessLandmarkClick;
function onBusinessLandmarkClick(eventArgs) { /* Your code */ }
mapControlDataHelper.addEventListener("businesslandmarkclick", onBusinessLandmarkClick);
mapControlDataHelper.removeEventListener("businesslandmarkclick", onBusinessLandmarkClick);
- or -
mapControlDataHelper.onbusinesslandmarkclick = onBusinessLandmarkClick;
Public Custom Event BusinessLandmarkClick As TypedEventHandler(Of MapControl, MapControlBusinessLandmarkClickEventArgs) 

Event Type

Applies to