Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

windows 7 phone - close keyboard

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

like image 862
webdad3 Avatar asked Jan 07 '11 23:01

webdad3


People also ask

How do I turn off the onscreen keyboard in Windows 7?

How do I disable the on-screen keyboard on Windows 7? In Windows 7, open the Control Panel and select Ease of Access > Ease of Access Center. Under Use the computer without a mouse or keyboard, deselect Use On-Screen Keyboard and click OK.

How to open screen keyboard on windows 7?

Open On-Screen Keyboard by clicking the Start button, clicking All Programs, clicking Accessories, clicking Ease of Access, and then clicking On-Screen Keyboard.


2 Answers

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.

like image 167
Mick N Avatar answered Sep 28 '22 05:09

Mick N


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.

like image 40
dwynne Avatar answered Sep 28 '22 04:09

dwynne