AutomationEvents Enumeration
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Specifies the event that is raised by the element through the associated AutomationPeer.
Namespace:  System.Windows.Automation.Peers
Assembly:  System.Windows (in System.Windows.dll)
Syntax
'Declaration
Public Enumeration AutomationEvents
public enum AutomationEvents
Members
| Member name | Description | |
|---|---|---|
| .gif) | ToolTipOpened | The event that is raised when a tooltip is opened. | 
| .gif) | ToolTipClosed | The event that is raised when a tooltip is closed. | 
| .gif) | MenuOpened | The event that is raised when a menu is opened. . | 
| .gif) | MenuClosed | The event that is raised when a menu is closed. | 
| .gif) | AutomationFocusChanged | The event that is raised when the focus has changed. See SetFocus. | 
| .gif) | InvokePatternOnInvoked | The event that is raised when a control is activated. See Invoke. | 
| .gif) | SelectionItemPatternOnElementAddedToSelection | The event that is raised when an item is added to a collection of selected items. See AddToSelection. | 
| .gif) | SelectionItemPatternOnElementRemovedFromSelection | The event that is raised when an item is removed from a collection of selected items. See RemoveFromSelection. | 
| .gif) | SelectionItemPatternOnElementSelected | The event that is raised when a single item is selected (which clears any previous selection). See Select. | 
| .gif) | SelectionPatternOnInvalidated | The event that is raised when a selection in a container has changed significantly. | 
| .gif) | TextPatternOnTextSelectionChanged | The event that is raised when the text selection is modified. | 
| .gif) | TextPatternOnTextChanged | The event that is raised when textual content is modified. | 
| .gif) | AsyncContentLoaded | The event that is raised when content is loaded asynchronously. | 
| .gif) | PropertyChanged | The event that is raised when a property has changed. | 
| .gif) | StructureChanged | The event that is raised when the UI Automation tree structure is changed. | 
Remarks
This identifier is passed to the RaiseAutomationEvent method to raise an event.
Handling an automation event including its specific automation event arguments is not enabled within the Silverlight 5 core API. Handling the event requires that the handler be part of a UI automation client, and the infrastructure for implementing a UI automation client is tied to the UIAutomationClient.dll assembly that is part of Microsoft Windows rather than being a part of the Silverlight libraries. Raising an automation event from the set that is identified by AutomationEvents does not require you to package event data; any required event data is provided by the UI automation infrastructure when it reports the event to UI automation clients.
Version Information
Silverlight
Supported in: 5, 4, 3
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also