Last Updated: 05 Feb 2015 09:04 by ADMIN
Created on: 03 Feb 2015 19:19
Category: UI for WPF
Type: Bug Report
mask token capital mvvme
You example of the mask token are as follow

<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
    <TextBlock Text="Mask: A" />
    <telerik:RadMaskedTextInput Margin="0,5,0,10" Mask="AAAAAA" />
    <TextBlock Text="Mask: a" />
    <telerik:RadMaskedTextInput Margin="0,5,0,10" Mask="aaaaaa" />
    <TextBlock Text="Mask: L" />
    <telerik:RadMaskedTextInput Margin="0,5,0,10" Mask="LLLL" />
    <TextBlock Text="Mask: l" />
    <telerik:RadMaskedTextInput Margin="0,5,0,10" Mask="llll" />
    <TextBlock Text="Mask: \" />
    <telerik:RadMaskedTextInput Mask="\#\\###" />
    <TextBlock Text="Mask: Any other characters" />
    <telerik:RadMaskedTextInput Mask="N\ame: llll" />

and the result should be as follow
Mask A = Aa1 +;
Mask a = Ab-,"

which is fine.
But if I use any of the capital A or L, in the MVVM, the binding is not working anymore.

I have attached a file.
Run the program and press add button
Enter info in First Name, then enter info in Last Name.
Put a break point in the file RecipientData.cs at the properties FirstName on get and set, and do the same for LastName properties.
In the xaml, the only difference between those 2 controls one the Mask="&gt;L1A29" for the first name and Mask="&gt;l1a29" for the last name.  I do not know what is going on behind the scene of this control, but I know there are some issues.

This is expected behavior in the MaskedInputControls. Please read more in the comments.
Attached Files:
1 comment
Petar Mladenov
Posted on: 05 Feb 2015 08:59
This is expected behavior of the control and that is why we are marking this bug report as DECLINED.

The FirstName Mask is "&gt;L1A29" meaning that the user is Required (read more here =>
to enter one letter and 29 alphanumeric characters. Every sequence different from this rule will mark the user input as INVALID and that is why the Mask Control does not update the Value.
If you set AllowInvalidValues to True on the RadMaskedTextInput, the Value and the setter of the FirstName property will be successfully updated although the Value is invalid according to the rule set by the required mask symbols.