1
Vote

Masked Edit Control - Cursor does not maintain position

description

Hi,
I am using Masked Edit Control. Following is my XAML code for USA Phone no.
We have inherited Masked Edit control in new control as we want to change the look and feel.
 
<common:IwebMaskedEdit Mask="(999)999-9999"
                                                            Width="324"
                                                            HorizontalAlignment="Left"
                                                            Text="{Binding Path=CurrentPatient.EmployerPhone, Mode=TwoWay,ValidatesOnExceptions=True, NotifyOnValidationError=True}"
                                                            TabIndex="45"
                                                            PromptCharacter="x"></common:IwebMaskedEdit>
 
When we start typing the nos in control cursor moves on first place and start overwriting the entered contents again.
Focus moves before the bracket and when we try to enter phone number focus doesn't set to proper place.
Focus should remain inside the bracket after we clear the phone number.
 
Thanks for help…
 
Regards,
Chirag Joshi

comments