Click here to Skip to main content
15,881,812 members
Articles / Desktop Programming / WPF
Alternative
Tip/Trick

Global Hotkeys in WPF

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
1 Nov 2011CPOL 20.8K   5   5
If you're truly targeting WPF, why not eliminate the dependency on WinForms and use System.Windows.Input.Key instead?

If you're truly targeting WPF, why not eliminate the dependency on WinForms and use System.Windows.Input.Key instead?

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralOf course ;) - Thanks for your hint! Pin
Henning Dieterichs9-Nov-11 10:34
Henning Dieterichs9-Nov-11 10:34 
GeneralAnd of course after your improvement, the 3rd line in the 'U... Pin
Kamran Behzad7-Nov-11 13:08
Kamran Behzad7-Nov-11 13:08 
GeneralThank you for your improvement! I've updated the article. Pin
Henning Dieterichs1-Nov-11 8:24
Henning Dieterichs1-Nov-11 8:24 
GeneralConversions are available in System.Windows.Input.KeyInterop... Pin
Zac Bergquist1-Nov-11 4:55
Zac Bergquist1-Nov-11 4:55 
GeneralBecause the Key-Codes are different when converting to int. Pin
Henning Dieterichs1-Nov-11 4:45
Henning Dieterichs1-Nov-11 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.