共用方式為


RadialController.ButtonHolding 事件

定義

發生于使用者按下並按住滾輪裝置時。

// Register
event_token ButtonHolding(TypedEventHandler<RadialController, RadialControllerButtonHoldingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
RadialController::ButtonHolding_revoker ButtonHolding(auto_revoke_t, TypedEventHandler<RadialController, RadialControllerButtonHoldingEventArgs const&> const& handler) const;
public event TypedEventHandler<RadialController,RadialControllerButtonHoldingEventArgs> ButtonHolding;
function onButtonHolding(eventArgs) { /* Your code */ }
radialController.addEventListener("buttonholding", onButtonHolding);
radialController.removeEventListener("buttonholding", onButtonHolding);
- or -
radialController.onbuttonholding = onButtonHolding;
Public Custom Event ButtonHolding As TypedEventHandler(Of RadialController, RadialControllerButtonHoldingEventArgs) 

事件類型

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

您的應用程式在下列情況下不會收到此事件:

適用於

另請參閱