Hi,
I need to have the hability to select all text in XamNumericInput when user clicks over the control. Right now the focus only is positioned over the character I click on, but I need to select all text to modify its content. Is it possible? I have tried to use SelectAll property, the GotFocus event (and call the SelectAll method), the SelectAllBehavior (="SelectAllCharacters"), but nothing works.
Is there any other approach to use for having this behavior?
Best Regards,
Caludio
The following works for me in the PreviewMouseLeftButtonDown event as a work around:
if (num.IsKeyboardFocusWithin) return; // To allow the user to highlight text after the numeric input has focus
num.Focus();
num.SelectAll();
e.Handled = true;