MapControl.MapRightTapped 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当用户按住 MapControl 或使用鼠标右键单击它时发生。 MapRightTappedEventArgs 的实例为此事件提供数据。
// Register
event_token MapRightTapped(TypedEventHandler<MapControl, MapRightTappedEventArgs const&> const& handler) const;
// Revoke with event_token
void MapRightTapped(event_token const* cookie) const;
// Revoke with event_revoker
MapControl::MapRightTapped_revoker MapRightTapped(auto_revoke_t, TypedEventHandler<MapControl, MapRightTappedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapRightTappedEventArgs> MapRightTapped;
function onMapRightTapped(eventArgs) { /* Your code */ }
mapControl.addEventListener("maprighttapped", onMapRightTapped);
mapControl.removeEventListener("maprighttapped", onMapRightTapped);
- or -
mapControl.onmaprighttapped = onMapRightTapped;
Public Custom Event MapRightTapped As TypedEventHandler(Of MapControl, MapRightTappedEventArgs)
事件类型
Windows 要求
设备系列 |
Windows 10 (在 10.0.10586.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v2.0 中引入)
|