Registers a callback which got called if the specific key changed its state to one of the given states.
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 18.104.22.168
public KeyboardWatchToken AddCallback( Key key, IEnumerable<KeyState> states, Action<KeyStateChangedArgs> callback )
- Type: System.Windows.InputKey
The key which has to be watched for.
- Type: System.Collections.GenericIEnumerableKeyState
The key states which has to be watched for.
- Type: SystemActionKeyStateChangedArgs
The callback to be called.
Return ValueType: KeyboardWatchToken
A token which represends the current callback to be used for RemoveCallback(KeyboardWatchToken).