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

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

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

Parameters

keys
Type: System.Collections.GenericIEnumerableKey
The keys which has to be watched for.
state
Type: DW.WPFToolkit.HelpersKeyState
The key state 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