Raise Events from a UI Automation Provider


This documentation is intended for .NET Framework developers who want to use the managed UI Automation classes defined in the System.Windows.Automation namespace. For the latest information about UI Automation, see Windows Automation API: UI Automation.

This topic contains example code that shows how to raise an event from a . GTMT

In the following example, a UI Automation event is raised in the implementation of a custom button control. The implementation enables a application to simulate a button click.GTMT

To avoid unnecessary processing, the example checks ClientsAreListening to see whether events should be raised.

Code snippet is not found. Confirm that the code snippet name 'UIAProvider_snip' is correct.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft