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;
Hello Gergana,
I have the last release, but if I use a XamNumericInput like this : <ig:XamNumericInput Grid.Row="0" Width="150" SelectAllBehavior="SelectAllCharacters" />
I have to double-click to select the value. Is there anyway to have all the characters selected when the control got the focus ?
Thanks,
Geoffroy
Hello Geoffroy,
I have been looking into your question. The fix for this issue is already released with the latest service release.
Please do not hesitate to let me know if you have any further questions on this matter.
Hi Gergana,
I have the same problem. Can you give an approximative date for this release ?
Regards
A little additional info:
Setting SelectionStart and SelectionLength on the GotFocus event, works if you "tab" to the control, but NOT when you click the control, even if you use one of the "Mouse" events (MouseUp / MouseDown).
The very strange behaviour is that with SelectAll it only works if you "tab" backwards ??.