Share via


TextCompositionManager.AddPreviewTextInputHandler Metoda

Definice

Přidá obslužnou rutinu pro připojenou PreviewTextInput událost.

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)

Parametry

element
DependencyObject

Objekt závislosti, do které chcete přidat obslužnou rutinu události. Objekt závislosti musí být nebo UIElementContentElement.

handler
TextCompositionEventHandler

Delegát, který určuje obslužnou rutinu, která se má přidat.

Poznámky

Tato metoda přidá obslužnou rutinu pro verzi tunelování této události. Informace o bublající verzi této události najdete v tématu TextInput.

Platí pro

Viz také