Is there a way to pass entered key as command parameter in InputBindings of Window? I tried achive this by code below, but it isn't working.
<KeyBinding x:Name="KeyBinding" Command="{Binding ChoosePackageSizeFromKeyboard}" CommandParameter="{Binding ElementName=KeyBinding, Path=Key}" />
I don't wanna create binding for every key I wanna use, cause depending of condition it will be beetween 1 and 5 keys. Any ideas how to pass it to command?