Hi,
Can i block unwanted characters in my XamTextEditor thru xaml ??
Sandeep
Hello Sandeep,
Yes, you can use the ValueConstraint.Enumeration property, which requires an IEnumerable collection of values that can be validated by the ValueConstraint object. In other words the value being validated by this ValueConstraint object will not be considered valid if the value is not part of this enumeration.
Hope this helps,Alex.
Hi Alex,
Thanks for the response. Tried what u said. But it didnt work.
this is what i did.
IList<String> blockedChars = new List<String>();
blockedChars.Add("'");
xamTextEditor1.ValueConstraint.Enumeration = blockedChars;
Anything missing?