RaiseAutomationEvent Method

AutomationPeer.RaiseAutomationEvent Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Raises an automation event.

Namespace:  System.Windows.Automation.Peers
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Public Sub RaiseAutomationEvent ( _
	eventId As AutomationEvents _
)

Parameters

eventId
Type: System.Windows.Automation.Peers.AutomationEvents
The event identifier for the event to raise, as a value of the enumeration. See AutomationEvents.

If EventsSource is not Nothing, then EventsSource is reported as part of the event.

Handling an automation event including its specific automation event arguments is not enabled within the Windows Phone 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 Windows Phone core. 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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft