WPF - Masked Input Control

3 posts, 1 answers
  1. Bhavesh
    Bhavesh avatar
    4 posts
    Member since:
    Apr 2011

    Posted 01 Aug 2011 Link to this post

    User would like to be avoid stopping at a date since it isn't always required.  Setting the IsTabStop to False doesn't work.  Even after setting the IsTabStop property to false, the cursor continues to stop for each part of the date (mm/dd/yyyy).
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 04 Aug 2011 Link to this post

    Hi Bhavesh,

    I will post the answer I sent to your support ticket here as well in case anyone else encounters the same issue:

    You can handle the RadMaskedDateTimeInput.PreviewGotKeyboardFocus() event to prevent the control from focusing on Tab key:

    <telerik:RadMaskedDateTimeInputPreviewGotKeyboardFocus="RadMaskedDateTimeInput_PreviewGotKeyboardFocus"/>

    privatevoidRadMaskedDateTimeInput_PreviewGotKeyboardFocus(objectsender, KeyboardFocusChangedEventArgs e)
    {
        e.Handled = true;
    }


    Greetings,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Bhavesh
    Bhavesh avatar
    4 posts
    Member since:
    Apr 2011

    Posted 08 Aug 2011 Link to this post

    This did the trick.  I just set the focus to the next control that should receive the focus after the e.handled = true; statement.
Back to Top