How to enable enter button on keyboard on wp7?

走远了吗. 提交于 2020-01-23 01:20:10

问题


I was noticing on certain application for wp7, that they were able to use the enter key on the keyboard to submit, but by default when you hit the enter key it goes to the next line. I was even noticing the enter key is different from the default enter key.

How do you submit, and if possible how do you change the way the enter key looks?

Any tips, answers or resources would be appreciated. Thanks.


回答1:


You need to change the InputScope from "Text" and then capture the enter key on the KeyDown event.




回答2:


As Matt states, the keyboard layout depends on the InputScope that you specify. You can find some illustrations of the different layouts on Jeff Blankenburg's blog.

If you're interested in using the Enter key to "tab" between input fields, there's a great behavior you can use.




回答3:


Correct me if I'm wrong, but it seems more standard (on a touch device) to trigger a submit/enter on the up/release. One benefit being, if you press on an adjacent key to the one intended, you can then drag over to it and release.



来源:https://stackoverflow.com/questions/5160884/how-to-enable-enter-button-on-keyboard-on-wp7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!