Registers a callback which got called if the specific key changed its state to the given one.
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 220.127.116.11
public KeyboardWatchToken AddCallback( Key key, KeyState state, Action<KeyStateChangedArgs> callback )
- Type: System.Windows.InputKey
The key which has to be watched for.
- Type: DW.WPFToolkit.HelpersKeyState
The key state 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).