AccessKeyManager AccessKeyManager AccessKeyManager AccessKeyManager Class

Definition

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
AccessKeyManagerAccessKeyManagerAccessKeyManagerAccessKeyManager

Remarks

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.

Fields

AccessKeyPressedEvent AccessKeyPressedEvent AccessKeyPressedEvent AccessKeyPressedEvent

Identifies the AccessKeyPressed routed event.

Methods

AddAccessKeyPressedHandler(DependencyObject, AccessKeyPressedEventHandler) AddAccessKeyPressedHandler(DependencyObject, AccessKeyPressedEventHandler) AddAccessKeyPressedHandler(DependencyObject, AccessKeyPressedEventHandler) AddAccessKeyPressedHandler(DependencyObject, AccessKeyPressedEventHandler)

Adds a handler for the AccessKeyPressed attached event.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
IsKeyRegistered(Object, String) IsKeyRegistered(Object, String) IsKeyRegistered(Object, String) IsKeyRegistered(Object, String)

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

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ProcessKey(Object, String, Boolean) ProcessKey(Object, String, Boolean) ProcessKey(Object, String, Boolean) ProcessKey(Object, String, Boolean)

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

Register(String, IInputElement) Register(String, IInputElement) Register(String, IInputElement) Register(String, IInputElement)

Associates the specified access keys with the specified element.

RemoveAccessKeyPressedHandler(DependencyObject, AccessKeyPressedEventHandler) RemoveAccessKeyPressedHandler(DependencyObject, AccessKeyPressedEventHandler) RemoveAccessKeyPressedHandler(DependencyObject, AccessKeyPressedEventHandler) RemoveAccessKeyPressedHandler(DependencyObject, AccessKeyPressedEventHandler)

Removes the specified AccessKeyPressed event handler from the specified object.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
Unregister(String, IInputElement) Unregister(String, IInputElement) Unregister(String, IInputElement) Unregister(String, IInputElement)

Disassociates the specified access keys from the specified element.

Attached Events

AccessKeyPressed AccessKeyPressed AccessKeyPressed AccessKeyPressed

Occurs when the access key is pressed.

Applies to

See also