I use RadNumericUpDown in many places. My application runs on a PC and on the Microsoft Surface and uses the Windows8Touch theme.
My problem is that whenever the user types the + or - button of a RadNumericUpDown on the MS Surface, the Window Virtual Keyboard appears, immediately obscuring the very control you are using. The user isn't trying to edit the text box, mind you, just tapping the buttons.
I can see the cause: Whenever you tap one of those buttons, the edit control gets keyboard focus. This triggers Windows (at a very low level) to pop up the virtual keyboard.
But if the user is only tapping the buttons, it seems that the edit box should not get focus. That should not happen until you actually try to *type* in it. And even if you think it *should* get focus, there at least needs to be a way to prevent it from happening.
Here is what I tried:
1. I tried to setting the entire RadNumericControl's IsEditable property to "False" but this has no effect. Even though the user cannot edit the box, tapping the UP or DOWN button *still* makes the edit control think it is being edited enough to give it focus and force that virtual keyboard to appear
2. I tried setting the entire control's "Focusable" property to "False" but that didn't work either. The internal edit control still gets keyboard focus. This is because the Telerik template for the control fails to pass the "Focusable" to its internal edit through TemplateBinding.
I have managed to "fix" this by copying the entire RadNumericUpDown control's template and making it pass "Focusable" to its internal edit via the TemplateBinding. Then I use this template for my RadNumericUpDown and set them to not Focusable.
But I don't want to copy the entire template that because a)it's overkill and b) my copied template is not using the Telerik Windows8Touch theme that I applied to everything else. So it looks out of place and terrible. Yeah, maybe I can copy stuff from the Telerik XAML files but again, I'd really prefer a simple property on the RadNumericUpDown.
Am I missing some simpler method here? Does RadNumericUpDown give me a way to get at the internal edit control and prevent it from getting keyboard focus short of copying its entire template?
Also, am I correct that it's internal edit should NOT get keyboard focus if you just tap the buttons (at least if it's not editable)?
I am hoping you can point me to an easier way.