InputManager Class
TOC
Collapse the table of content
Expand the table of content

InputManager Class

 

Manages all the input systems in Windows Presentation Foundation (WPF).

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

System.Object
  System.Windows.Threading.DispatcherObject
    System.Windows.Input.InputManager

public sealed class InputManager : DispatcherObject

NameDescription
System_CAPS_pubpropertySystem_CAPS_staticCurrent

Gets the InputManager associated with the current thread.

System_CAPS_pubpropertyDispatcher

Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)

System_CAPS_pubpropertyInputProviders

Gets a collection of InputProviders registered with the InputManager.

System_CAPS_pubpropertyIsInMenuMode

Gets a value that indicates whether this ComponentDispatcher is in menu mode.

System_CAPS_pubpropertyMostRecentInputDevice

Gets a value that represents the input device associated with the most recent input event.

System_CAPS_pubpropertyPrimaryKeyboardDevice

Gets the primary keyboard device.

System_CAPS_pubpropertyPrimaryMouseDevice

Gets the primary mouse device.

NameDescription
System_CAPS_pubmethodCheckAccess()

Determines whether the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodPopMenuMode(PresentationSource)

Called by components to leave menu mode.

System_CAPS_pubmethodProcessInput(InputEventArgs)

Processes the specified input synchronously.

System_CAPS_pubmethodPushMenuMode(PresentationSource)

Called by components to enter menu mode.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodVerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

NameDescription
System_CAPS_pubeventEnterMenuMode

Occurs when a control enters menu mode by calling the PushMenuMode method.

System_CAPS_pubeventHitTestInvalidatedAsync

Occurs when the result of a hit-test may have changed.

System_CAPS_pubeventLeaveMenuMode

Occurs when a control leaves menu mode by calling the PopMenuMode method.

System_CAPS_pubeventPostNotifyInput

Occurs after the PreNotifyInput handlers have finished processing the input and the corresponding Windows Presentation Foundation (WPF) events have been raised. 

System_CAPS_pubeventPostProcessInput

Occurs after the PreNotifyInput handlers have finished processing the input.

System_CAPS_pubeventPreNotifyInput

Occurs when the PreProcessInput handlers have finished processing the input, if the input was not canceled.

System_CAPS_pubeventPreProcessInput

Occurs when the InputManager starts to process the input item.

The InputManager class is responsible for coordinating all of the input systems in WPF.

A filter is any code that listens to PreProcessInput or PostProcessInput. Filters can modify the input staging area.

A monitor is any code that listens to PreNotifyInput or PostNotifyInput. Monitors cannot modify the input staging area.

The InputManager controls the input staging area. The input staging area processes input into Windows Presentation Foundation (WPF) events.

Input is processed in WPF in the follow stages:

  1. Pre-process stage. The input manager raises the PreProcessInput event.

  2. Pre-notify stage. The input manager raises the PreNotifyInput event.

  3. The WPF input event or events are raised.

  4. Post-notify stage. The input manager raises the PostNotifyInput event.

  5. Post-process stage. The input manager raises the PostProcessInput event.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft