dictHotKeyToCalBackProc
全部标签 我正在使用WPF在C#中构建应用程序。我怎样才能绑定(bind)到一些键?此外,我如何绑定(bind)到Windowskey? 最佳答案 这是一个完整的工作解决方案,希望对您有所帮助...用法:_hotKey=newHotKey(Key.F9,KeyModifier.Shift|KeyModifier.Win,OnHotKeyHandler);...privatevoidOnHotKeyHandler(HotKeyhotKey){SystemHelper.SetScreenSaverRunning();}类:usingSystem;
我正在使用WPF在C#中构建应用程序。我怎样才能绑定(bind)到一些键?此外,我如何绑定(bind)到Windowskey? 最佳答案 这是一个完整的工作解决方案,希望对您有所帮助...用法:_hotKey=newHotKey(Key.F9,KeyModifier.Shift|KeyModifier.Win,OnHotKeyHandler);...privatevoidOnHotKeyHandler(HotKeyhotKey){SystemHelper.SetScreenSaverRunning();}类:usingSystem;