So what I have is a textbox that submits data back to the server.
I want to have it submit once the person has stopped typing.
My thought process was to have a timer and have the textbox change set the timer to start (if stopped) and reset the countdown time to lets say 3 seconds if its already running and have the timer.Tick event submit the changes…
Is there a better method for doing that?
Is there one that works?
You can use a DispatcherTimer to do this. Just start the timer when the textbox gets focus and whenever the keydown event happens mark a variable that notes the user is typing. Something like:
I’m not sure this is the best approach (submitting data like this) but it should work. Note this is psuedo code only.