TextCompositionManager.AddPreviewTextInputHandler(DependencyObject, TextCompositionEventHandler) TextCompositionManager.AddPreviewTextInputHandler(DependencyObject, TextCompositionEventHandler) TextCompositionManager.AddPreviewTextInputHandler(DependencyObject, TextCompositionEventHandler) TextCompositionManager.AddPreviewTextInputHandler(DependencyObject, TextCompositionEventHandler) Method

Definition

Adds a handler for the PreviewTextInput attached event.

public:
 static void AddPreviewTextInputHandler(System::Windows::DependencyObject ^ element, System::Windows::Input::TextCompositionEventHandler ^ handler);
public static void AddPreviewTextInputHandler (System.Windows.DependencyObject element, System.Windows.Input.TextCompositionEventHandler handler);
static member AddPreviewTextInputHandler : System.Windows.DependencyObject * System.Windows.Input.TextCompositionEventHandler -> unit
Public Shared Sub AddPreviewTextInputHandler (element As DependencyObject, handler As TextCompositionEventHandler)

Parameters

element
DependencyObject DependencyObject DependencyObject DependencyObject

A dependency object to add the event handler to. The dependency object must be a UIElement or a ContentElement.

Remarks

This method adds a handler for the tunneling version of this event. For information about the bubbling version of this event, see TextInput.

Applies to

See also