AccessKeyManager Class
Maintains the registration of all access keys and the handling of interop keyboard commands between Windows Forms, Win32, and Windows Presentation Foundation (WPF).
Namespace: System.Windows.Input
Assembly: PresentationCore (in PresentationCore.dll)
The AccessKeyManager type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | AddAccessKeyPressedHandler | Adds a handler for the AccessKeyPressed attached event. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object. (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.) |
![]() ![]() | IsKeyRegistered | Indicates whether the specified key is registered as an access keys in the specified scope. |
![]() ![]() | ProcessKey | Processes the specified access keys as if a KeyDown event for the key was passed to the AccessKeyManager. |
![]() ![]() | Register | Associates the specified access keys with the specified element. |
![]() ![]() | RemoveAccessKeyPressedHandler | Removes the specified AccessKeyPressed event handler from the specified object. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() | Unregister | Disassociates the specified access keys from the specified element. |
An AccessKeyManager object is created on demand with one per Dispatcher.
The AccessKeyManager is attached as an event handler for PostProcessInput and exposes methods to Register and Unregister access keys.
When the registered access key is pressed, the AccessKeyManager calls the OnAccessKey method on the target element.
An element can be associated with any number of access keys.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
