AccessKeyManager Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Maintains the registration of all access keys and the handling of interop keyboard commands between Windows Forms, Win32, and Windows Presentation Foundation (WPF).
public ref class AccessKeyManager sealed
public sealed class AccessKeyManager
type AccessKeyManager = class
Public NotInheritable Class AccessKeyManager
- Inheritance
-
AccessKeyManager
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.
Access |
Identifies the AccessKeyPressed routed event. |
Add |
Adds a handler for the AccessKeyPressed attached event. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Is |
Indicates whether the specified key is registered as an access keys in the specified scope. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Process |
Processes the specified access keys as if a KeyDown event for the key was passed to the AccessKeyManager. |
Register(String, IInput |
Associates the specified access keys with the specified element. |
Remove |
Removes the specified AccessKeyPressed event handler from the specified object. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Unregister(String, IInput |
Disassociates the specified access keys from the specified element. |
Access |
Occurs when the access key is pressed. |
Product | Versions |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: