Where are the input masks used by the XamEditor samples defined?
I'm talking about the ones prefixed by:
XWE_InputMask_
Thanks
ET
ET,
If you download the local samples which are available with our Silverlight LOB / WebClient product, you will find these masks defined in the "EditorStrings.resx" file, which is found in the Resources folder of the SamplesBrowser.Samples.LOB project.
For example:<data name="XWE_InputMask_PhoneNumberWithExtMask" xml:space="preserve" ><value>(###) ###-#### Ext\. 99999</value></data>
I hope this helps.FrancisPS - I found this thread while researching your questions opened through private support cases, and I will soon be answering you in those cases as well.
I found the file, thanks, but it doesn't have what I'm looking for.
I need an IPv4 input mask that will present dots between each octet that can be entered.
I thought of using:
###.####.###.###
but this doesn't work because each octet can be 1-3 digits in length.
Next I tried:
#.#.#.#
999.999.999.999
and
9.9.9.9
but this doesn't work either :(
Finally, this document:
http://help.infragistics.com/NetAdvantage/Silverlight/2010.2/CLR4.0/?page=SL_xamMaskedEditor_About_Masks.html
doesn't really give me any way to achieve this?
Thoughts?
Cheers
I tried the IP address mask and the results are horrible, sorry :(
It needs to look behave like a Windows IP address control and this does neither.
People are used to a fixed mask area, not one that changes in size.
Also, it is expected to use the '.' character to navigate between octets, not just the TAB character.
Hello EvilTed,
So you can use this workaround for IPv4:
<ig:XamMaskedEditor x:Name="mEditor" Mask="999\.999\.999\.999" DataMode="IncludeLiterals" DisplayMode="IncludeLiterals" PromptChar=" " TabNavigationMode="NextSection" InsertMode="False" />
About the email mask, I would suggest this mask:
<ig:XamMaskedEditor x:Name="mEditor" Mask="CCCCCCCCCCCCCCCCCCCC@CCCCCCCCCCCCCCCCCCCC\.CCC" DataMode="IncludeLiterals" DisplayMode="IncludeLiterals" PromptChar=" " TabNavigationMode="NextSection" InsertMode="False" />
The XamMaskedEditor doesn’t support regular expressions yet.
Regards,
Doychin Dochev