11-25-2019 02:10 PM
I'm trying to give a NumericTextBoxDouble control keyboard focus programmatically. I tried NumericTextBoxDouble.Focus() and Keyboard.Focus(NumericTextBoxDouble) and neither of them worked. Any thoughts?
Solved! Go to Solution.
11-25-2019 02:57 PM
Using Focus
does give keyboard focus to the numeric control itself (for example, if you use the up or down arrow keys, the value will change).
However, setting focus to the control does not shift focus to the input area within the control. To do that, use the MoveFocus
method:
numeric.MoveFocus( new TraversalRequest( FocusNavigationDirection.Next ) );
11-26-2019 08:08 AM
Works like a charm! Thanks for the help!