TextBox.BeforeTextChanging Ereignis

Definition

Tritt synchron auf, wenn sich der Text im Textfeld zu ändern beginnt, aber bevor die Text-Eigenschaft aktualisiert wird.

// Register
event_token BeforeTextChanging(TypedEventHandler<TextBox, TextBoxBeforeTextChangingEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
TextBox::BeforeTextChanging_revoker BeforeTextChanging(auto_revoke_t, TypedEventHandler<TextBox, TextBoxBeforeTextChangingEventArgs const&> const& handler) const;
public event TypedEventHandler<TextBox,TextBoxBeforeTextChangingEventArgs> BeforeTextChanging;
function onBeforeTextChanging(eventArgs) { /* Your code */ }
textBox.addEventListener("beforetextchanging", onBeforeTextChanging);
textBox.removeEventListener("beforetextchanging", onBeforeTextChanging);
- or -
textBox.onbeforetextchanging = onBeforeTextChanging;
Public Custom Event BeforeTextChanging As TypedEventHandler(Of TextBox, TextBoxBeforeTextChangingEventArgs) 
<TextBox BeforeTextChanging="eventhandler"/>

Ereignistyp

Windows-Anforderungen

Gerätefamilie
Windows 10 Fall Creators Update (eingeführt in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v5.0)

Gilt für:

Weitere Informationen