مشاركة عبر


AutoSuggestBox.TextChanged Event

Definition

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.

Applies to