I have several windows in the application, for example window1, window2 and window3.
one RoutedCommand (with KeyGesture F11) was bound in window1. How to run this routed command by pressing F11 while window2 has input focus?
In a WinForm application, I use MessageFilter to detect F11, but in WPF, how do I do this?
CommandManager.RegisterClassCommandBinding, . , , App.xaml.cs, .
CommandManager.RegisterClassCommandBinding(typeof(Window), new CommandBinding(ApplicationCommands.Cut, CutExecuted));
Source: https://habr.com/ru/post/1753439/More articles:Linq To SQL, WebServices, Websites - Planning For Everything - c #Using java image api application with eclipse + dev server? - google-app-engineVertex associations using vestal_versions? - ruby-on-railsFont Errors Using the pdfLaTeX Microtype - fontsMaking Arithmetic OperatorsHow to put a view on the back button in the navigation bar? - objective-cCan Kohana 3 validation errors be inherited? - phpHow would I read such a JSON structure? - jsonCan I use an object type as an @WebMethod parameter? - javaMaster data - the following keys - cocoaAll Articles