Edit

Share via


Menu.OnTextInput(TextCompositionEventArgs) Method

Definition

Handles the TextInput routed event that occurs when the menu receives text input from any device.

protected:
 override void OnTextInput(System::Windows::Input::TextCompositionEventArgs ^ e);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected override void OnTextInput (System.Windows.Input.TextCompositionEventArgs e);
protected override void OnTextInput (System.Windows.Input.TextCompositionEventArgs e);
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
override this.OnTextInput : System.Windows.Input.TextCompositionEventArgs -> unit
override this.OnTextInput : System.Windows.Input.TextCompositionEventArgs -> unit
Protected Overrides Sub OnTextInput (e As TextCompositionEventArgs)

Parameters

e
TextCompositionEventArgs

The event data.

Attributes

Remarks

This implementation does not change the handled state (the Handled property) of the TextInput event data.

Notes to Inheritors

If you override OnTextInput(TextCompositionEventArgs), always call the base implementation in your OnTextInput(TextCompositionEventArgs) implementation. Failure to call the base implementation prevents base classes from handling the event with a class handler, which might change the run-time behavior of the final class. You can call the base implementation either before or after your special handling, depending on your requirements.

Applies to