An example on setting the max length using the xamMaskedEditor.
In the attached sample sets the Mask property based on an integer value. When entering edit mode raises the loaded event in which the property can be set.