Browse Source

MaskedTextBox: fix bug with not properly handling optional digits represented by 9

import/raw
brianlagunas_cp 15 years ago
parent
commit
62c4c93cc0
  1. 5
      Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MaskedTextBox/Implementation/MaskedTextBox.cs

5
Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MaskedTextBox/Implementation/MaskedTextBox.cs

@ -313,7 +313,7 @@ namespace Microsoft.Windows.Controls
else if (e.Key == Key.Space)
{
if (provider.InsertAt(" ", position))
UpdateText(provider, position);
UpdateText(provider, ++position);
e.Handled = true;
}
else if (e.Key == Key.Back)//handle the back space
@ -395,7 +395,8 @@ namespace Microsoft.Windows.Controls
{
IncludePrompt = this.IncludePrompt,
IncludeLiterals = this.IncludeLiterals,
PromptChar = this.PromptChar
PromptChar = this.PromptChar,
ResetOnSpace = false //should make this a property
};
}

Loading…
Cancel
Save