MapControl.MapContextRequested Event
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, such as a right-click.
// Register
event_token MapContextRequested(TypedEventHandler<MapControl, MapContextRequestedEventArgs const&> const& handler) const;
// Revoke with event_token
void MapContextRequested(event_token const* cookie) const;
// Revoke with event_revoker
MapControl::MapContextRequested_revoker MapContextRequested(auto_revoke_t, TypedEventHandler<MapControl, MapContextRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapContextRequestedEventArgs> MapContextRequested;
function onMapContextRequested(eventArgs) { /* Your code */ }
mapControl.addEventListener("mapcontextrequested", onMapContextRequested);
mapControl.removeEventListener("mapcontextrequested", onMapContextRequested);
- or -
mapControl.onmapcontextrequested = onMapContextRequested;
Public Custom Event MapContextRequested As TypedEventHandler(Of MapControl, MapContextRequestedEventArgs)
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
Product | Versions |
---|---|
WinRT | Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |