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
Supported by Silverlight for Windows Phone ToolTipOpened The event that is raised when a tooltip is opened.
Supported by Silverlight for Windows Phone ToolTipClosed The event that is raised when a tooltip is closed.
Supported by Silverlight for Windows Phone MenuOpened The event that is raised when a menu is opened. .
Supported by Silverlight for Windows Phone MenuClosed The event that is raised when a menu is closed.
Supported by Silverlight for Windows Phone AutomationFocusChanged The event that is raised when the focus has changed. See SetFocus.
Supported by Silverlight for Windows Phone InvokePatternOnInvoked The event that is raised when a control is activated. See Invoke.
Supported by Silverlight for Windows Phone SelectionItemPatternOnElementAddedToSelection The event that is raised when an item is added to a collection of selected items. See AddToSelection.
Supported by Silverlight for Windows Phone SelectionItemPatternOnElementRemovedFromSelection The event that is raised when an item is removed from a collection of selected items. See RemoveFromSelection.
Supported by Silverlight for Windows Phone SelectionItemPatternOnElementSelected The event that is raised when a single item is selected (which clears any previous selection). See Select.
Supported by Silverlight for Windows Phone SelectionPatternOnInvalidated The event that is raised when a selection in a container has changed significantly.
Supported by Silverlight for Windows Phone TextPatternOnTextSelectionChanged The event that is raised when the text selection is modified.
Supported by Silverlight for Windows Phone TextPatternOnTextChanged The event that is raised when textual content is modified.
Supported by Silverlight for Windows Phone AsyncContentLoaded The event that is raised when content is loaded asynchronously.
Supported by Silverlight for Windows Phone PropertyChanged The event that is raised when a property has changed.
Supported by Silverlight for Windows Phone 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.