AutoSuggestBox.TextChanged 活动
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
更新可编辑控件组件的文本内容后引发。
// 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 中键入的更改与从下拉列表中选择的项目之间的更改。