Hello,
I am running into some issues with the XamMaskedEditor. I have one setup like so:
<igEditors:XamMaskedEditor Mask="CCCCCCCCCC" Value="Test123" PromptChar="" />
The problem is this, when you click at the end of Test123, most of the time it will not let you type or hit the space bar. Generally you have to hit the left arrow and then the right arrow to begin typing. I have also noticed cliking a few times in the editor will eventually get it working. I can also go and add text between any of the existing characters, then go to the end and hit space or another character.
I have experienced this issue with WPF 2009 Vol 1 and 2008 Vol 1. Am I doing something wrong or is there another way to get this working without switching to a different control type.
Thanks,
-Mike
The fact that clicking well to the right of the text positions the caret at the end of the entered text but clicking just to the right of the text (at least with this mask) is positioning the caret after all the prompt characters doesn't seem correct. It would seem that the caret should have been positioned just after the last character. I'll submit an issue for this and see about getting a case associated with it for you.
Note: If you had 10 characters entered then you wouldn't be able to type any characters until you deleted some or if you had selected characters and typed (i.e. you overwrote/replaced existing characters).
Any updates on this issue? I'm using 10.1 and it still seems to be a problem. Just to make sure it doesn't get miss, this can also occur between sections of a mask.
In my example (simplified), I have a simple e-mail mask of the form: CCCCCCC@CCCCC.CCC
If I type in something like name@mail.com it looks fine, but then if I position the cursor to the left of the @ and start typing, the characters will enter to the right of the @. I can hit the left arrow once before typing to get one character before the @.
I believe we resolved this issue with a hack. It seems to be working for us with this code in place.
We derive from XamMaskedEditor and in the Loaded event we do this:
ExecutingCommand += On
ExecutingCommand;
void OnExecutingCommand(object sender, Infragistics.Windows.Controls.Events.ExecutingCommandEventArgs e) { if (e.Command == MaskedEditorCommands.Backspace || e.Command == MaskedEditorCommands.PreviousCharacter) { if (this.SelectionStart > this.Text.Length) { this.SelectionStart = this.Text.Length; e.Handled = true; } } else if (e.Command == MaskedEditorCommands.SetPivot ) { if (PromptChar == '\0' && DisplayText != null && SelectionLength > DisplayText.Length) { SelectionLength = DisplayText.Length; } } }
Try this and see if it resolves your issue.