CoreWindow.PointerPressed 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在应用边界矩形内单击鼠标按钮或数字化器表面已被手指或笔触摸时发生。
交互会话在检测到单个联系人时开始,在不再检测到该接触以及同一会话中的所有后续联系人时结束。
为交互会话中检测到的第一个联系人触发此事件。 所有其他并发接触指针的详细信息通过 PointerPointProperties 对象公开, (从 PointerPoint 对象获取 Properties 属性) 。
// Register
event_token PointerPressed(TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;
// Revoke with event_token
void PointerPressed(event_token const* cookie) const;
// Revoke with event_revoker
CoreWindow::PointerPressed_revoker PointerPressed(auto_revoke_t, TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreWindow,PointerEventArgs> PointerPressed;
function onPointerPressed(eventArgs) { /* Your code */ }
coreWindow.addEventListener("pointerpressed", onPointerPressed);
coreWindow.removeEventListener("pointerpressed", onPointerPressed);
- or -
coreWindow.onpointerpressed = onPointerPressed;
Public Custom Event PointerPressed As TypedEventHandler(Of CoreWindow, PointerEventArgs) Implements PointerPressed
事件类型
实现
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈