KeyboardWatcherAddCallback Method (Key, ActionKeyStateChangedArgs)DW.WPFToolkit Documentation
Registers a callback which got called if the specific key changed its state.

Namespace: DW.WPFToolkit.Helpers
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 5.6.0.0
Syntax

C#
public KeyboardWatchToken AddCallback(
	Key key,
	Action<KeyStateChangedArgs> callback
)

Parameters

key
Type: System.Windows.InputKey
The key which has to be watched for.
callback
Type: SystemActionKeyStateChangedArgs
The callback to be called.

Return Value

Type: KeyboardWatchToken
A token which represends the current callback to be used for RemoveCallback(KeyboardWatchToken).
See Also

Reference