c# - How to hide Windows Phone 8.1 soft keyboard effectively? -



c# - How to hide Windows Phone 8.1 soft keyboard effectively? -

i want hide soft keyboard when enter key tapped, no solutions works me properly. (windows phone 8.1 universal app)

this 1 doesn't work:

if (e.key == virtualkey.enter) { textbox.isenabled = false; textbox.isenabled = true; }

a method this:

private void losefocus(object sender) { var command = sender control; var istabstop = control.istabstop; control.isenabled = false; control.istabstop = false; control.isenabled = true; control.istabstop = istabstop; }

works partially. it's hiding keyboard when i'm using textbox first time. on sec time keyboard reappearing.

there direct api back upwards hide , show inputpane. don't need seek false out system.

the windows.ui.viewmanagement.inputpane.tryshow , tryhide methods available on windows phone 8.1.

the other alternative move focus more appropriate command when user hits enter.

c# xaml windows-phone-8.1 soft-keyboard

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -