开发者

How to lock keys/keypad programmatically in WP7

I want to lock specific keys/whole keypad programmatically in Windows Phone 7.

I开发者_运维技巧s there any API available for this?

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.

I think I'm speaking for all Windows Phone users when I say such functionality should never be exposed. Think "denial of service"!


You can determine which virtual keyboard (SIP) the user sees by specifying the InputScope for the relevant TextBox controls. The complete list is documented on MSDN and there are some screenshots in Jeff Blankburg's blog post.


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. 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 (e.g. a TextBox control).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜