16. February 2011 01:17
I was looking for a way to programmatically hide the keyboard in WP7 and was searching for some WP7 API method, but couldn’t find one. Then it dawn on me that the keyboard automatically hides when the TextBox control looses focus. So I decided to give it a try by setting the focus on another control and it worked:
1: //focus the current page
3: //or focus another control
It is very easy and straight forward. This is very nice trick for when you use the enter button of the keyboard to emulate a button click, like in a search box.