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).
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.) |
![]() | 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.) |
![]() ![]() | IsKeyRegistered | Indicates whether the specified key is registered as an access keys in the specified scope. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | 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 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.
