Should the .TextInput event on TextBox react to manually setting the Text of the control?

The second LINQPad Controls sample, "Simple controls and events".

Behavior I see: Whenever I type in the textbox, the content is dumped. However, when I click the button the text is changed, yet the content is not dumped.

Is this by design? I was expecting this to be handled like I just typed in the control. In fact, if I paste something into the textbox, this is handled and dumped.


  • The TextInput event is a forward of the JavaScript onInput event, which responds to interactive changes, but not programmatic changes.

    Do you think a TextChanged event (which would respond to both) would be more useful?
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!