vendredi 14 mars 2014

Windows 8 - How to Dismiss Touch Keyboard?

I am developing my app for Windows 8 in C#, and one very annoying thing is that the touch keyboard sometimes stays on screen even though all textboxes have lost focus.

Solution:


What you need to do is set focus to any control that does not accept text entry. However, be aware that if the user manually showed the keyboard (as opposed to it automatically showing because a TextBox received focus) then the keyboard will remain open.
Check out this really good thread about the on-screen keyboard for more info:

Aucun commentaire:

Enregistrer un commentaire