ICoreWindow.PointerEntered 事件

定义

指定当指针移动到窗口的边界框中时发生的事件。

// Register
event_token PointerEntered(TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;

// Revoke with event_token
void PointerEntered(event_token const* cookie) const;

// Revoke with event_revoker
ICoreWindow::PointerEntered_revoker PointerEntered(auto_revoke_t, TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;
event TypedEventHandler<CoreWindow,PointerEventArgs> PointerEntered;
function onPointerEntered(eventArgs) { /* Your code */ }
iCoreWindow.addEventListener("pointerentered", onPointerEntered);
iCoreWindow.removeEventListener("pointerentered", onPointerEntered);
- or -
iCoreWindow.onpointerentered = onPointerEntered;
Event PointerEntered As TypedEventHandler(Of CoreWindow, PointerEventArgs) 

事件类型

注解

对于触摸点,此事件将在 PointerPressed 事件之前引发。

适用于

另请参阅