I have a simple textbox on my Windows Phone 7 application. I want to execute a method when the user types something in the textbox and confirms it.
My question is, how would I go about this? When I click the textbox in the emulator, a keyboard pops up, I’m guessing the preferred way is somehow capturing that submit event. Any guidance?
Consider checking for the Enter keypress. Ensure your XAML’s TextBox has this method declared for the KeyDown event.
Ensure you then hide the keyboard if appropriate. Hiding the keyboard is achieved by setting focus away from the textbox.