ICoreWindow.PointerWheelChanged 事件

定义

旋转鼠标滚轮时引发的事件。

此事件的委托类型为 TypedEventHandler<TSender,TResult>,其中 TSender 的类型为 CoreWindow,TResult 的类型PointerEventArgs

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

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

// Revoke with event_revoker
ICoreWindow::PointerWheelChanged_revoker PointerWheelChanged(auto_revoke_t, TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;
event TypedEventHandler<CoreWindow,PointerEventArgs> PointerWheelChanged;
function onPointerWheelChanged(eventArgs) { /* Your code */ }
iCoreWindow.addEventListener("pointerwheelchanged", onPointerWheelChanged);
iCoreWindow.removeEventListener("pointerwheelchanged", onPointerWheelChanged);
- or -
iCoreWindow.onpointerwheelchanged = onPointerWheelChanged;
Event PointerWheelChanged As TypedEventHandler(Of CoreWindow, PointerEventArgs) 

事件类型

示例

请参阅 处理指针输入中的代码示例。

适用于

另请参阅