语言

AutoSuggestBox.TextChanged 活动

定义

更新可编辑控件组件的文本内容后引发。

// Register
event_token TextChanged(TypedEventHandler<AutoSuggestBox, AutoSuggestBoxTextChangedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
AutoSuggestBox::TextChanged_revoker TextChanged(auto_revoke_t, TypedEventHandler<AutoSuggestBox, AutoSuggestBoxTextChangedEventArgs const&> const& handler) const;
public event TypedEventHandler<AutoSuggestBox,AutoSuggestBoxTextChangedEventArgs> TextChanged;
function onTextChanged(eventArgs) { /* Your code */ }
autoSuggestBox.addEventListener("textchanged", onTextChanged);
autoSuggestBox.removeEventListener("textchanged", onTextChanged);
- or -
autoSuggestBox.ontextchanged = onTextChanged;
Public Custom Event TextChanged As TypedEventHandler(Of AutoSuggestBox, AutoSuggestBoxTextChangedEventArgs) 
<AutoSuggestBox TextChanged="eventhandler"/>

事件类型

注解

使用此事件的 AutoSuggestBoxTextChangedEventArgs 数据,你的应用可以区分在 TextBox 中键入的更改与从下拉列表中选择的项目之间的更改。

适用于