AccessKeyManager::Register Method (String^, IInputElement^)

 

Associates the specified access keys with the specified element.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public:
static void Register(
	String^ key,
	IInputElement^ element
)

Parameters

key
Type: System::String^

The access key.

element
Type: System.Windows::IInputElement^

The element to associate key with.

When the access keys is pressed, the OnAccessKey method of element is called.

An element can be associated with any number of access keys.

.NET Framework
Available since 3.0
Return to top
Show: