CoreComponentInputSource.CharacterReceived Événement
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Déclenché lorsqu’un caractère est reçu (par exemple à partir d’une séquence de touches terminée) par l’élément XAML hébergé.
// Register
event_token CharacterReceived(TypedEventHandler<IInspectable, CharacterReceivedEventArgs const&> const& handler) const;
// Revoke with event_token
void CharacterReceived(event_token const* cookie) const;
// Revoke with event_revoker
CoreComponentInputSource::CharacterReceived_revoker CharacterReceived(auto_revoke_t, TypedEventHandler<IInspectable, CharacterReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<object,CharacterReceivedEventArgs> CharacterReceived;
function onCharacterReceived(eventArgs) { /* Your code */ }
coreComponentInputSource.addEventListener("characterreceived", onCharacterReceived);
coreComponentInputSource.removeEventListener("characterreceived", onCharacterReceived);
- or -
coreComponentInputSource.oncharacterreceived = onCharacterReceived;
Public Custom Event CharacterReceived As TypedEventHandler(Of Object, CharacterReceivedEventArgs)
Type d'événement
TypedEventHandler<IInspectable,CharacterReceivedEventArgs>