简体   繁体   English

如何在WP7中以编程方式锁定按键/键盘

[英]How to lock keys/keypad programmatically in WP7

I want to lock specific keys/whole keypad programmatically in Windows Phone 7. 我想在Windows Phone 7中以编程方式锁定特定键/整个键盘。

Is there any API available for this? 是否有可用的API?

Thanks. 谢谢。

No, there isn't. 不,没有。 Nothing of the sort is available today, and nor is it going to be when the Mango update is released this fall. 今天没有任何可用的东西,也不会在今年秋天发布Mango更新时提供。

I think I'm speaking for all Windows Phone users when I say such functionality should never be exposed. 当我说永远不要公开这种功能时,我想我是为所有Windows Phone用户说的。 Think "denial of service"! 考虑“拒绝服务”!

You can determine which virtual keyboard (SIP) the user sees by specifying the InputScope for the relevant TextBox controls. 您可以通过为相关TextBox控件指定InputScope来确定用户看到的虚拟键盘(SIP)。 The complete list is documented on MSDN and there are some screenshots in Jeff Blankburg's blog post . 完整的列表记录在MSDN上Jeff Blankburg的博客文章中有一些屏幕截图。

It is possible through the native (read: unofficial, unsupported) API - each device has its own, and I know that on my Dell Venue Pro I can lock any physical key on the device. 可以通过本机(读取的:非官方的,不受支持的)API进行操作-每个设备都有自己的API,而且我知道在Dell Venue Pro上,我可以锁定设备上的任何物理密钥。 As of virtual (software) keys - you cannot lock them through the SDK and all you can do is handle events as keystrokes are sent from the keyboard to the receiver (eg a TextBox control). 从虚拟(软件)键开始-您无法通过SDK锁定它们,而您只能做的事情是处理事件,因为击键是从键盘发送到接收器(例如TextBox控件)的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM