ISynchronizedInputProvider.StartListening Method (SynchronizedInputType)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Designates that the provider start listening for input of the specified type.

Namespace:   System.Windows.Automation.Provider
Assembly:  UIAutomationProvider (in UIAutomationProvider.dll)

void StartListening(
	SynchronizedInputType inputType


Type: System.Windows.Automation.SynchronizedInputType

The type of input to listen for.

When WPF finds matching input, it checks the route of the incoming event. If the automation element that is listening for the input is not in the route, the input is discarded and the InputDiscardedEvent event is raised. If the input is received by the automation element listening for that type, the InputReachedTargetEvent event is raised; otherwise, the InputReachedOtherElementEvent event is raised.

After receiving the input, the provider stops listening and continues normally.

.NET Framework
Available since 4.0
Return to top