I have a Name input field in xaml and I would like to validate the string length that the user is allowed to insert (up to 14 characters). I tried to do this:
<PropertyViewDescriptor Name="Name" >
<PropertyViewDescriptor.Validators>
<TextValuePattern Pattern=".{1,14}" Message="up to 14 characters"/>
</PropertyViewDescriptor.Validators>
</PropertyViewDescriptor>
But it seems like it checks if the characters are from the set {1,2,3,...,14}. What is the correct pattern for length validation?