标签: c# keyboard-shortcuts
如何在WPF的主窗口中创建快捷键,例如当我按 Ctrl + f 打开新窗口时?
答案 0 :(得分:0)
查看CommandBinding
CommandBinding
<UserControl.CommandBindings> <CommandBinding Command="ApplicationCommands.Open" Executed="_HandleApplicationOpenCommandExecute"/> </UserControl.CommandBindings>