[Code] Handling Backspace Key in WP7

I just came across a question on Stackoverflow asking how to handle the backspace key in a textbox. This isn’t something I’ve had to do, but my initial reaction would’ve been to handle it as with any other button. Simply, handle the textbox’s OnKeyDown event and then check the event argument to see if the relevant key has been pressed. For example, if we wanted to see if the ‘Enter’ key had been pressed whilst the textbox has focus, we could do this:

Read more of this post

Advertisements