Registers a callback which got called no matter which keys came into the specific state.
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version: 184.108.40.206
public KeyboardWatchToken AddCallback( KeyState state, Action<KeyStateChangedArgs> callback )
- 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).