This project has moved. For the latest updates, please go here.

MaskedTextBox: Type over existing data??

Apr 13, 2012 at 2:44 PM

We are using MaskedTextBox for phone masking.  When we try an edit an existing phone number.
The masked edit box does not allow for "type overs" by default.

 

The behavior i was hoping to see was starting type over (123) 456-7890 and changing it to (555) 555-5555.
However the MaskedTextBox does not allow for editing in this circumstance. 

  

Is there some configuration in MaskedTextBox that can be set.  To allow for the funcationality we desire?

 

Code is as follows:

 

<extToolkit:MaskedTextBox                      Value="{Binding HomePhone}"                     Mask="(000) 000-0000"                     IncludeLiterals = "False"                     IncludePrompt = "True";                     PromptChar = ' '                     TextWrapping="Wrap"                      Width="100"                      TabIndex="8"                     MaxLength="50"                        Grid.Column="1" Grid.Row="10"                     HorizontalAlignment="Left"                     d:LayoutOverrides="HorizontalAlignment"                     Margin="{DynamicResource TextBoxMargin}"                   />

Coordinator
Apr 13, 2012 at 8:25 PM

Right now, there is no way to configure this behavior.  I have created the issue #17829 to solve this problem.

Oct 22, 2012 at 5:40 PM

This can be adressed with version 1.8 by setting the "InsertKeyMode" property to "Overwrite"

Nov 7, 2012 at 6:49 PM

Issue http://wpftoolkit.codeplex.com/workitem/17829 fixed in v1.8