We are using the System.AddIn structure for creating an application for hosting apps. What we would like is to hook up to the event that a TextBox gets focus in these separate apps.
How can we do that?
I know the processes, so I can access those and maybe listen on the message pump? But how? What messages to listen for and how to determine if that control getting focus is actually a TextBox (WPF type)?
Hope for your help!
I don't think you can do it in an "out of the box" way.
A solution could be create a duplex WCF service exposed by all wpf processes.
Then the client can connect to the services and use a Register method to listen to events.
The service implementation will then dispatch events to the registered clients. It takes some time but I think it is the only way.