Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
255
Xam Editors - Text is not selected on Focus
posted

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!

Parents
  • 27093
    posted

    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

Reply Children
No Data