Freigeben über


CoreComponentInputSource.CharacterReceived Ereignis

Definition

Wird ausgelöst, wenn ein Zeichen (z. B. von einer abgeschlossenen Tastendrucksequenz) vom gehosteten XAML-Element empfangen wird.

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

Ereignistyp

Gilt für: