Possible Duplicate:
How can I convert 'System.Windows.Input.Key' to 'System.Windows.Forms.Keys'?
I have a WPF control that has object of type System.Windows.Input.KeyEventArgs. The control needs to pass that object to a method that expects a System.Windows.Forms.KeyEventArgs.
Is there a built-in adapter (see http://en.wikipedia.org/wiki/Adapter_pattern) in the .Net Windows Forms Integration classes to do that? Or do I have to code the adapter (including a huge switch case to map each value of System.Windows.Input.Key to the corresponding value in System.Windows.Forms.Keys)?