Ejemplo n.º 1
0
 public static void TriggerInput(this TextBoxBase self, Key key)
 {
     self.RaiseKeyboardEvent(UIElement.PreviewKeyDownEvent, key);
     self.RaiseEvent(new TextChangedEventArgs(TextBox.TextChangedEvent, UndoAction.None));
 }