MapControl.MapContextRequested 事件

定义

当用户在地图上完成上下文输入手势(例如右键单击)时发生。

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

事件类型

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于