I need to be able to set up a background hotkey event for a WPF application. (by background I mean that the application in question might not necessary be in focus).
I know that with WinForms the proper way of doing it would be to import user32.dll, and use RegisterHotKey, and the catch the appropriate WM_POST message. I'm convinced that there has to be a better solution with WPF, then using user32.dll, but I have been unable to find anything. Any suggestions? Thanks