Hello,
I'm using several Xam editors such as XamCurrencyEditor and XamTextEditor on their own without the grid.
All standard Microsoft controls expose the same behavior when the entered text of the control becomes selected when the control gets focus (tabbed in). The Xam editors do not provide such default behavior.
Is this by design? Is there a property on the Xam Editor controls that can enable the same behavior?
It is especially annoying and dangerous in the Currency Editor, that positions the cursor in front of the first zero digit, so when a user starts typing, the digits start adding to the existing zero digit. For example, typing "1" makes $10.00.
Thanks!
Hello Serge,
I have been looking into your request and can suggest using SelectAll() method of the XamEditors inside the GotFocus event. Here is a code snippet for a XamTextEditor:
private void xamTextEditor_GotFocus(object sender, RoutedEventArgs e)
{
(sender as XamTextEditor).SelectAll();
}
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support
Hello Petar,
Yes, this is a valid workaround.
However, it would be so much easier for us (developers) if the default behavior of Infragistics controls matches the default behavior of Microsoft controls for the benefit of end-user having consistent UI experience.
Serge