CoreWindow.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
CoreWindow::PointerWheelChanged_revoker PointerWheelChanged(auto_revoke_t, TypedEventHandler<CoreWindow, PointerEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreWindow,PointerEventArgs> PointerWheelChanged;
function onPointerWheelChanged(eventArgs) { /* Your code */ }
coreWindow.addEventListener("pointerwheelchanged", onPointerWheelChanged);
coreWindow.removeEventListener("pointerwheelchanged", onPointerWheelChanged);
- or -
coreWindow.onpointerwheelchanged = onPointerWheelChanged;
Public Custom Event PointerWheelChanged As TypedEventHandler(Of CoreWindow, PointerEventArgs) Implements PointerWheelChanged

事件类型

实现

示例

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

适用于

另请参阅