MapControlDataHelper.BusinessLandmarkRightTapped 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当用户按住某个业务位置或使用鼠标右键单击它时发生。 MapControlBusinessLandmarkRightTappedEventArgs 的实例提供此事件的数据。
注意
此 API 并非适用于所有 Windows 应用。 除非你的开发人员帐户由 Microsoft 专门预配,否则对此 API 的调用将在运行时失败。 有关此 API 和 Windows.Services.Maps.LocalSearch 命名空间的详细信息,请与 Microsoft 客户团队代表联系。
// Register
event_token BusinessLandmarkRightTapped(TypedEventHandler<MapControl, MapControlBusinessLandmarkRightTappedEventArgs const&> const& handler) const;
// Revoke with event_token
void BusinessLandmarkRightTapped(event_token const* cookie) const;
// Revoke with event_revoker
MapControlDataHelper::BusinessLandmarkRightTapped_revoker BusinessLandmarkRightTapped(auto_revoke_t, TypedEventHandler<MapControl, MapControlBusinessLandmarkRightTappedEventArgs const&> const& handler) const;
public event TypedEventHandler<MapControl,MapControlBusinessLandmarkRightTappedEventArgs> BusinessLandmarkRightTapped;
function onBusinessLandmarkRightTapped(eventArgs) { /* Your code */ }
mapControlDataHelper.addEventListener("businesslandmarkrighttapped", onBusinessLandmarkRightTapped);
mapControlDataHelper.removeEventListener("businesslandmarkrighttapped", onBusinessLandmarkRightTapped);
- or -
mapControlDataHelper.onbusinesslandmarkrighttapped = onBusinessLandmarkRightTapped;
Public Custom Event BusinessLandmarkRightTapped As TypedEventHandler(Of MapControl, MapControlBusinessLandmarkRightTappedEventArgs)