Поделиться через


CoreComponentInputSource.CharacterReceived Событие

Определение

Возникает при получении символа (например, из завершенной последовательности нажатия клавиш) размещенным элементом XAML.

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

Тип события

Применяется к