简体   繁体   中英

How to lock keys/keypad programmatically in WP7

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

Is 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 (eg a TextBox control).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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