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)