private void tbox_KeyDown_1(object sender, System.Windows.Input.KeyEventArgs e)
{
if (e.Key == Key.Enter)
//do something
}
What I want is that after the above keydownevent in textbox named tbox. I want the virtual keyboard visible on the phone screen to drop off, when I click Enter button. How could this be achieved?
you just need to set the focus to the page not the textbox.
Source:
http://www.jstawski.com/archive/2011/02/16/programmatically-hiding-the-keyboard-in-windows-phone-7-wp7.aspx