ComboBox.TextSubmitted Événement

Définition

Se produit lorsque l’utilisateur envoie du texte qui ne correspond pas à un élément de la liste déroulante ComboBox.

// Register
event_token TextSubmitted(TypedEventHandler<ComboBox, ComboBoxTextSubmittedEventArgs const&> const& handler) const;

// Revoke with event_token
void TextSubmitted(event_token const* cookie) const;

// Revoke with event_revoker
ComboBox::TextSubmitted_revoker TextSubmitted(auto_revoke_t, TypedEventHandler<ComboBox, ComboBoxTextSubmittedEventArgs const&> const& handler) const;
public event TypedEventHandler<ComboBox,ComboBoxTextSubmittedEventArgs> TextSubmitted;
function onTextSubmitted(eventArgs) { /* Your code */ }
comboBox.addEventListener("textsubmitted", onTextSubmitted);
comboBox.removeEventListener("textsubmitted", onTextSubmitted);
- or -
comboBox.ontextsubmitted = onTextSubmitted;
Public Custom Event TextSubmitted As TypedEventHandler(Of ComboBox, ComboBoxTextSubmittedEventArgs) 

Type d'événement

Configuration requise pour Windows

Famille d’appareils
Windows 10, version 1809 (introduit dans 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v7.0)

S’applique à