MapControl.MapContextRequested Evento

Definição

Ocorre quando o usuário concluiu um gesto de entrada de contexto em um mapa, como um clique com o botão direito do mouse.

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

Tipo de evento

Requisitos do Windows

Família de dispositivos
Windows 10 Creators Update (introduzida na 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduzida na v4.0)

Aplica-se a