AutoSuggestBox.TextChanged Événement

Définition

Déclenché après la mise à jour du contenu texte du composant de contrôle modifiable.

// 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"/>

Type d'événement

Remarques

À l’aide des données AutoSuggestBoxTextChangedEventArgs pour cet événement, votre application peut faire la différence entre les modifications d’un utilisateur tapant dans textBox et un élément sélectionné dans la liste déroulante de suggestions.

S’applique à