KeyboardWatcherAddCallback Method (IEnumerableKey, IEnumerableKeyState, ActionKeyStateChangedArgs)DW.WPFToolkit Documentation
Registers a callback which got called if one of the given keys changed their state to one of the given states.

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

C#
public KeyboardWatchToken AddCallback(
	IEnumerable<Key> keys,
	IEnumerable<KeyState> states,
	Action<KeyStateChangedArgs> callback
)

Parameters

keys
Type: System.Collections.GenericIEnumerableKey
The keys which has to be watched for.
states
Type: System.Collections.GenericIEnumerableKeyState
The key states 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