The WPF form that I run from the WinForms window appears with all text fields as uneditable at startup as a modeless dialog. I used ElementHost.EnableModelessKeyboardInterop to solve the problem and it worked there.
I also open the same WPF interface from MS Excel as an add-in. The EnableModelessKeyboardInterop handle EnableModelessKeyboardInterop not work there. Whenever I try to edit a WPF text field, the focus shifts in Excel and keyboard input is displayed in Excel instead of the WPF text field. Any ideas on how to fix this?
PS - This is a continuation of my previous question about SO: The WPF dialog does not allow editing a text field
source share