InputManager Class
Manages all the input systems in Windows Presentation Foundation (WPF).
Assembly: PresentationCore (in PresentationCore.dll)
The InputManager type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | Current | Gets the InputManager associated with the current thread. |
![]() | Dispatcher | Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.) |
![]() | InputProviders | Gets a collection of InputProviders registered with the InputManager. |
![]() | IsInMenuMode | Gets a value that indicates whether this ComponentDispatcher is in menu mode. |
![]() | MostRecentInputDevice | Gets a value that represents the input device associated with the most recent input event. |
![]() | PrimaryKeyboardDevice | Gets the primary keyboard device. |
![]() | PrimaryMouseDevice | Gets the primary mouse device. |
| Name | Description | |
|---|---|---|
![]() | CheckAccess | Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | PopMenuMode | Called by components to leave menu mode. |
![]() | ProcessInput | Processes the specified input synchronously. |
![]() | PushMenuMode | Called by components to enter menu mode. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | VerifyAccess | Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
| Name | Description | |
|---|---|---|
![]() | EnterMenuMode | Occurs when a control enters menu mode by calling the PushMenuMode method. |
![]() | HitTestInvalidatedAsync | Occurs when the result of a hit-test may have changed. |
![]() | LeaveMenuMode | Occurs when a control leaves menu mode by calling the PopMenuMode method. |
![]() | PostNotifyInput | Occurs after the PreNotifyInput handlers have finished processing the input and the corresponding Windows Presentation Foundation (WPF) events have been raised. |
![]() | PostProcessInput | Occurs after the PreNotifyInput handlers have finished processing the input. |
![]() | PreNotifyInput | Occurs when the PreProcessInput handlers have finished processing the input, if the input was not canceled. |
![]() | PreProcessInput | 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:
Pre-process stage. The input manager raises the PreProcessInput event.
Pre-notify stage. The input manager raises the PreNotifyInput event.
The WPF input event or events are raised.
Post-notify stage. The input manager raises the PostNotifyInput event.
Post-process stage. The input manager raises the PostProcessInput event.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
