Reputation: 9080
How do I programmatically close the onscreen keyboard for my WP7 app?
Upvotes: 14
Views: 3051
Reputation: 21
http://www.geekchamp.com/tips/how-to-hide-the-soft-keyboard-in-a-windows-phone-app
You will love this, It solved my problem when search clicked
Upvotes: 2
Reputation: 916
If you're on a page that has no other sensible control to switch focus to, setting IsEnabled = false (and then back to true straight away if you want) on the TextBox which has focus will also close the SIP.
Upvotes: 3
Reputation: 14882
The only way would be to change the focus to be away from the TextBox that's causing it to be open, with .Focus on some other control. You can put it on a non visual control if you prefer.
Upvotes: 11