TextCompositionManager.AddPreviewTextInputUpdateHandler Metoda

Definicja

Dodaje procedurę obsługi dla dołączonego PreviewTextInputUpdate zdarzenia.

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

Parametry

element
DependencyObject

Obiekt zależności, do który ma zostać dodany program obsługi zdarzeń. Obiekt zależności musi być obiektem UIElement ContentElementlub .

handler
TextCompositionEventHandler

Delegat, który wyznacza procedurę obsługi do dodania.

Uwagi

Ta metoda dodaje procedurę obsługi dla wersji tunelowania tego zdarzenia. Aby uzyskać informacje o wersji bubbling tego zdarzenia, zobacz TextInputUpdate.

Dotyczy

Zobacz też