Observing TextChanged event on a TextBox

suggest change

An observable is created from the TextChanged event of the TextBox. Also any input is only selected if it’s different from the last input and if there was no input within 0.5 seconds. The output in this example is sent to the console.

     .FromEventPattern(textBoxInput, "TextChanged")
     .Select(s => ((TextBox) s.Sender).Text)
     .Subscribe(text => Console.WriteLine(text));

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents