ISynchronizedInputProvider.StartListening(SynchronizedInputType) Method

Definition

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

public:
 void StartListening(System::Windows::Automation::SynchronizedInputType inputType);
public void StartListening (System.Windows.Automation.SynchronizedInputType inputType);
abstract member StartListening : System.Windows.Automation.SynchronizedInputType -> unit
Public Sub StartListening (inputType As SynchronizedInputType)

Parameters

inputType
SynchronizedInputType

The type of input to listen for.

Remarks

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.

Applies to