InputActivationListener.InputActivationChanged 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當視窗、檢視或其他視覺專案完成轉換為新的啟用狀態時發生。
// Register
event_token InputActivationChanged(TypedEventHandler<InputActivationListener, InputActivationListenerActivationChangedEventArgs const&> const& handler) const;
// Revoke with event_token
void InputActivationChanged(event_token const* cookie) const;
// Revoke with event_revoker
InputActivationListener::InputActivationChanged_revoker InputActivationChanged(auto_revoke_t, TypedEventHandler<InputActivationListener, InputActivationListenerActivationChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<InputActivationListener,InputActivationListenerActivationChangedEventArgs> InputActivationChanged;
function onInputActivationChanged(eventArgs) { /* Your code */ }
inputActivationListener.addEventListener("inputactivationchanged", onInputActivationChanged);
inputActivationListener.removeEventListener("inputactivationchanged", onInputActivationChanged);
- or -
inputActivationListener.oninputactivationchanged = onInputActivationChanged;
Public Custom Event InputActivationChanged As TypedEventHandler(Of InputActivationListener, InputActivationListenerActivationChangedEventArgs)