问题描述
我正在尝试移植我的应用从Windows Phone到Win 8,并希望将键盘加速器添加到应用程序底部显示的键盘上。
我有一套切换按钮,但似乎无法将键盘连接到按钮上。
我试过AutomationProperties.AccessKey =" ;和Alt + B"和AutomationProperties.AcceleratorKey =" Alt + A"但似乎都没有做任何事情。
我缺少什么?
Anthony Wieser |维瑟软件有限公司|
I'm trying to port my app http://www.wieser-software.com/m/bridge/ from Windows Phone to Win 8, and would like to add keyboard accelerators to the keyboard shown at the bottom of the app.
I have a set of toggle buttons, but can't seem to get anything that hooks the keyboard to the buttons.
I've tried AutomationProperties.AccessKey = "Alt+B" and AutomationProperties.AcceleratorKey="Alt+A" but neither seems to do anything.
What am I missing?
Anthony Wieser | Wieser Software Ltd | www.wieser-software.com
这篇关于如何在按钮上添加键盘快捷键?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!