The UIA model is to allow the client to specify exactly which events they are interested in by using the API to add specific event listeners.
Please see the topic in the SDK UI Automation Events For Clients.
There is not an API to register all event handlers for an element (even though UISpy enables this) because that will make performance slow. The recommendation is for the client to specify exactly what information they are interested in listening for.
Please let me know if you have any other questions.
Thanks!
Thomas |