I am trying to bind any keyboard key to a command in the ViewModel .
I know that I can bind a specific key using:
<Window.InputBindings> <KeyBinding Command="{Binding ChangeIdCommand}" Key="B"/> </Window.InputBindings>
Is it possible to bind all keystrokes to ChangeIdCommand without typing them manually?
c # command wpf mvvm key-bindings
Idanis Jul 18 '16 at 9:33 2016-07-18 09:33
source share