Beispiel #1
0
 private static void UpdateHandlers(TextBoxBase textBox)
 {
     IsVisibleChangedEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     LoadedEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     UnloadedEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     GotKeyboardFocusEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     LostKeyboardFocusEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     TextChangedEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     SizeChangedEventManager.UpdateHandler(textBox, OnSizeChanged);
 }
 public TextBoxListener(TextBox textBox)
 {
     this.textBox = textBox;
     IsVisibleChangedEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     LoadedEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     UnloadedEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     GotKeyboardFocusEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     LostKeyboardFocusEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     TextChangedEventManager.UpdateHandler(textBox, OnAdornedElementChanged);
     SizeChangedEventManager.UpdateHandler(textBox, OnSizeChanged);
 }