AccessKeyManager Class
Collapse the table of content
Expand the table of content

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)


public sealed class AccessKeyManager

System_CAPS_pubmethodSystem_CAPS_staticAddAccessKeyPressedHandler(DependencyObject, AccessKeyPressedEventHandler)

Adds a handler for the AccessKeyPressed attached event.


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


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


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

System_CAPS_pubmethodSystem_CAPS_staticIsKeyRegistered(Object, String)

Indicates whether the specified key is registered as an access keys in the specified scope.

System_CAPS_pubmethodSystem_CAPS_staticProcessKey(Object, String, Boolean)

Processes the specified access keys as if a KeyDown event for the key was passed to the AccessKeyManager.

System_CAPS_pubmethodSystem_CAPS_staticRegister(String, IInputElement)

Associates the specified access keys with the specified element.

System_CAPS_pubmethodSystem_CAPS_staticRemoveAccessKeyPressedHandler(DependencyObject, AccessKeyPressedEventHandler)

Removes the specified AccessKeyPressed event handler from the specified object.


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

System_CAPS_pubmethodSystem_CAPS_staticUnregister(String, IInputElement)

Disassociates the specified access keys from the specified element.


Identifies the AccessKeyPressed routed event.


Occurs when the access key is pressed.

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.

.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
© 2015 Microsoft