RadMaskedTextInput - TextInput event and FocusRectangle

3 posts, 0 answers
  1. David A.
    David A. avatar
    126 posts
    Member since:
    Aug 2008

    Posted 17 Apr 2014 Link to this post

    Hi,

    I am using 2014.1.224.40 of the RadMaskedTextInput and the TextInput event is not firing.  PreviewTextInput does fire but not TextInput.  Secondly, I am trying to get rid of the focus rectangle as shown in the attachment by setting FocusVisualStyle="{x:Null}", but it doesn't work.  Is it possible to remove or hide the focus rectangle?

    Thank you,
    David A.
  2. David A.
    David A. avatar
    126 posts
    Member since:
    Aug 2008

    Posted 17 Apr 2014 in reply to David A. Link to this post

    Update:

    Never mind the TextInput question.  I just realized that event doesn't fire on regular TextBox either so disregard that.  I'd still like to know about the focus rectangle, and if it can be removed.

    Thank you,
    David A.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 21 Apr 2014 Link to this post

    Hello,

    The only way to restrict any element from being focused is to set its Focusable property. As far as I can see, in the provided picture the RadMaskedNumericInput itself is focused - rather than the native TextBox inside. If this is true, you can try setting its Focusable property to false.

    Please give this approach a try and let me know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top