webdad3
webdad3

Reputation: 9080

windows 7 phone - close keyboard

How do I programmatically close the onscreen keyboard for my WP7 app?

Upvotes: 14

Views: 3051

Answers (3)

techloverr
techloverr

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

dwynne
dwynne

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

Mick N
Mick N

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

Related Questions