MapControl.MapContextRequested Kejadian

Definisi

Terjadi ketika pengguna telah menyelesaikan gerakan input konteks di peta, seperti klik kanan.

// 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) 

Jenis Acara

Persyaratan Windows

Rangkaian perangkat
Windows 10 Creators Update (diperkenalkan dalam 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (diperkenalkan dalam v4.0)

Berlaku untuk