问题
When the user edits a record, a XAML Popup shows a small form.
The software keyboard appears when the user gives focus to a TextBox.
This is good.
OnKeyDown (if Enter) I commit the user's changes.
After the changes are committed, I hide the XAML Popup.
The SIP remains visible even though the form is invisible.
What is the correct way to handle this scenario?
PS: this ( Show/Hide Keyboard programmatically on windows8 ) is not a solution to this problem. That's because the question is wanting to prevent it from showing. I need it to hide.
回答1:
Disable the texbox before you hide the popup, move the focus to something that won't use the keyboard (like transparent 0x0 border), perhaps?
来源:https://stackoverflow.com/questions/13205963/is-it-possible-to-hide-the-sip-soft-keyboard-in-win-8