共用方式為


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) 

事件類型

範例

請參閱 處理指標輸入中的程式代碼範例。

適用於

另請參閱