共用方式為


CoreComponentInputSource.InputEnabled 事件

定義

啟用裝載的 XAML 控制項進行輸入時引發。

// Register
event_token InputEnabled(TypedEventHandler<IInspectable, InputEnabledEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
CoreComponentInputSource::InputEnabled_revoker InputEnabled(auto_revoke_t, TypedEventHandler<IInspectable, InputEnabledEventArgs const&> const& handler) const;
public event TypedEventHandler<object,InputEnabledEventArgs> InputEnabled;
function onInputEnabled(eventArgs) { /* Your code */ }
coreComponentInputSource.addEventListener("inputenabled", onInputEnabled);
coreComponentInputSource.removeEventListener("inputenabled", onInputEnabled);
- or -
coreComponentInputSource.oninputenabled = onInputEnabled;
Public Custom Event InputEnabled As TypedEventHandler(Of Object, InputEnabledEventArgs) Implements InputEnabled

事件類型

實作

適用於