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 和从下拉列表建议列表中选择的项的更改。

适用于