CoreWindow.PointerWheelChanged 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
旋转鼠标滚轮时引发的事件。
此事件的委托类型为 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
事件类型
实现
示例
请参阅 处理指针输入中的代码示例。