An earlier post explains how to set IsUndoEnabled=false to prevent RadNumericUpDown from handling undo. I did that, and it disabled the local undo feature. However, when focus is on the control and I press Ctrl-Z or Ctrl-Y, my global commands are not executed, although they work when focus is not on the RadNumericUpDown.
I tried two approaches to resolve this: adding a KeyDown handler, and adding local input bindings. The KeyDown handler receives the LControl key, but not the Z or Y keys while LControl is pressed. The local input bindings don't seem to do anything (see below).
So, after setting IsUndoEnabled=false, how do I get Ctrl-Z and Ctrl-Y to execute my global commands when focus is on the RadNumericUpDown control?
<telerik:RadNumericUpDown VerticalAlignment="Center"
NumberDecimalDigits="2"
Margin="0"
Width="80"
Loaded="RadNumericUpDown_Loaded"
Value="{Binding Width}">
<telerik:RadNumericUpDown.InputBindings>
<KeyBinding Gesture="Ctrl+Z" Command="{Binding UndoCommand}" />
<KeyBinding Gesture="Ctrl+Y" Command="{Binding RedoCommand}" />
</telerik:RadNumericUpDown.InputBindings>
</telerik:RadNumericUpDown>