Is there any 开发者_运维知识库way of disabling the hardware keys on Windows Phone 7 programmatically using Silverlight?
Thanks, Phil
No there is no way to do so, only what you can do is to override OnBackKeyPress event handler, but your app will not pass the certification.
Why would you like to do it anyway?
Disabling of all hardware keys with the exception of the back key is not possible.
The back key may only be overriden for the purpose of making custom page handling mechanics properly take the user back to the previous page they were looking at when the back key is pressed.
If you're back key does not implement back key functionality you risk having your submission to the marketplace fail.
精彩评论