AutoSuggestBox.TextChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised after the text content of the editable control component is updated.
// 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"/>
Event Type
Remarks
Using the AutoSuggestBoxTextChangedEventArgs data for this event, your app can differentiate between changes from a user typing in the TextBox versus an item being selected from the drop-down suggestion list.