MapElementsLayer.MapContextRequested 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 has completed a context input gesture on a map layer, such as a right-click.
// Register
event_token MapContextRequested(TypedEventHandler<MapElementsLayer, MapElementsLayerContextRequestedEventArgs const&> const& handler) const;
// Revoke with event_token
void MapContextRequested(event_token const* cookie) const;
// Revoke with event_revoker
MapElementsLayer::MapContextRequested_revoker MapContextRequested(auto_revoke_t, TypedEventHandler<MapElementsLayer, MapElementsLayerContextRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapElementsLayer,MapElementsLayerContextRequestedEventArgs> MapContextRequested;
function onMapContextRequested(eventArgs) { /* Your code */ }
mapElementsLayer.addEventListener("mapcontextrequested", onMapContextRequested);
mapElementsLayer.removeEventListener("mapcontextrequested", onMapContextRequested);
- or -
mapElementsLayer.onmapcontextrequested = onMapContextRequested;
Public Custom Event MapContextRequested As TypedEventHandler(Of MapElementsLayer, MapElementsLayerContextRequestedEventArgs)