AccessKeyManager AccessKeyManager AccessKeyManager AccessKeyManager Class

Definición

Mantiene el registro de todas las claves de acceso y el control de los comandos del teclado de interoperabilidad entre Windows Forms, Win32 y Windows Presentation Foundation (WPF).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
Herencia
AccessKeyManagerAccessKeyManagerAccessKeyManagerAccessKeyManager

Comentarios

Un AccessKeyManager objeto se crea a petición con uno por Dispatcher.An AccessKeyManager object is created on demand with one per Dispatcher.

El AccessKeyManager se adjunta como un controlador de eventos PostProcessInput y expone métodos para Register y Unregister claves de acceso.The AccessKeyManager is attached as an event handler for PostProcessInput and exposes methods to Register and Unregister access keys.

Cuando se presiona la tecla de acceso registrada, la AccessKeyManager llamadas la OnAccessKey método en el elemento de destino.When the registered access key is pressed, the AccessKeyManager calls the OnAccessKey method on the target element.

Un elemento puede asociarse con cualquier número de claves de acceso.An element can be associated with any number of access keys.

Campos

AccessKeyPressedEvent AccessKeyPressedEvent AccessKeyPressedEvent AccessKeyPressedEvent

Identifica el evento enrutado AccessKeyPressed.Identifies the AccessKeyPressed routed event.

Métodos

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

Agrega un controlador para el AccessKeyPressed evento adjunto.Adds a handler for the AccessKeyPressed attached event.

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

Determina si el objeto especificado es igual al objeto actual.Determines whether the specified object is equal to the current object.

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

Sirve como la función hash predeterminada.Serves as the default hash function.

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

Obtiene el Type de la instancia actual.Gets the Type of the current instance.

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

Indica si la clave especificada está registrada como una clave de acceso en el ámbito especificado.Indicates whether the specified key is registered as an access keys in the specified scope.

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

Crea una copia superficial del objeto Object actual.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)

Procesa las teclas de acceso especificadas como si se hubiese pasado un evento KeyDown para la tecla a AccessKeyManager.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)

Asocia las claves de acceso especificadas con el elemento especificado.Associates the specified access keys with the specified element.

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

Quita el AccessKeyPressed controlador de eventos del objeto especificado.Removes the specified AccessKeyPressed event handler from the specified object.

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

Devuelve una cadena que representa el objeto actual.Returns a string that represents the current object.

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

Desasocia las claves de acceso especificadas del elemento especificado.Disassociates the specified access keys from the specified element.

Eventos adjuntos

AccessKeyPressed AccessKeyPressed AccessKeyPressed AccessKeyPressed

Se produce cuando se presiona la tecla de acceso.Occurs when the access key is pressed.

Se aplica a

Consulte también: