I have a simple NumericUpDown control showing milliseconds. I use a 'ms' custom unit to show alongside the number.
It looks good but as soon as hit the + or - key, the 'ms' disappears and I have just a number. This is because hitting +/- gives keyboard focus to the edit box -- activates the cursor in there and all that. Once I click somewhere else focus leaves the edit box, the 'ms' re-appears.
Is there a property or some simple way that would let me prevent this behavior? I want +/- to just change the number without grabbing the keyboard focus.
Note that I do still want the number to be user-editable if they actually go to the trouble of clicking directly in the edit box itself. I just want to stop +/- from doing that for me.
<tk:RadNumericUpDown Width="150" Height="50"
Value="{Binding Exposure}"
IsInteger="True"
CustomUnit="ms"/>
It looks good but as soon as hit the + or - key, the 'ms' disappears and I have just a number. This is because hitting +/- gives keyboard focus to the edit box -- activates the cursor in there and all that. Once I click somewhere else focus leaves the edit box, the 'ms' re-appears.
Is there a property or some simple way that would let me prevent this behavior? I want +/- to just change the number without grabbing the keyboard focus.
Note that I do still want the number to be user-editable if they actually go to the trouble of clicking directly in the edit box itself. I just want to stop +/- from doing that for me.