This is a migrated thread and some comments may be shown as answers.

WPF - Masked Input Control

2 Answers 85 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Bhavesh
Top achievements
Rank 1
Bhavesh asked on 01 Aug 2011, 10:39 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Tina Stancheva
Telerik team
answered on 04 Aug 2011, 08:42 AM
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 >>

0
Bhavesh
Top achievements
Rank 1
answered on 08 Aug 2011, 07:21 PM
This did the trick.  I just set the focus to the next control that should receive the focus after the e.handled = true; statement.
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Bhavesh
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Bhavesh
Top achievements
Rank 1
Share this question
or