February 2011 Blog Posts

Programmatically hiding the keyboard in Windows Phone 7 (WP7)

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 2: this.Focus(); 3: //or focus another control ...

posted @ Wednesday, February 16, 2011 8:17 PM | Feedback (4)