RadialController.ControlAcquired 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于從功能表中選取應用程式) 所定義的自訂 RadialController 工具 (,或在自訂 RadialController 工具作用中時將與 RadialController 物件相關聯的應用程式帶入前景時發生。
// Register
event_token ControlAcquired(TypedEventHandler<RadialController, RadialControllerControlAcquiredEventArgs const&> const& handler) const;
// Revoke with event_token
void ControlAcquired(event_token const* cookie) const;
// Revoke with event_revoker
RadialController::ControlAcquired_revoker ControlAcquired(auto_revoke_t, TypedEventHandler<RadialController, RadialControllerControlAcquiredEventArgs const&> const& handler) const;
public event TypedEventHandler<RadialController,RadialControllerControlAcquiredEventArgs> ControlAcquired;
function onControlAcquired(eventArgs) { /* Your code */ }
radialController.addEventListener("controlacquired", onControlAcquired);
radialController.removeEventListener("controlacquired", onControlAcquired);
- or -
radialController.oncontrolacquired = onControlAcquired;
Public Custom Event ControlAcquired As TypedEventHandler(Of RadialController, RadialControllerControlAcquiredEventArgs)