Hi,
XamTextEditor will validate the input when the user leaves the editor and will take action, like display an error message box, based on its InvalidValueBehavior setting. However it will not restrict the user from typing any characters. BTW, editors expose IsValueValid property that is updated on every character input to reflect whether the current entered value is valid or not. You can for example use that in xaml in a trigger to highlight the editor differently etc... when the value is invalid.
Hope this helps,
Sandip
I'm having a problem when I'm trying to get a pattern to validate for example RegexPattern="(\d{1,2}:\d{2})". When the user is entering the value it validates on every input so they keep getting an error message until they finish entering the entire input.
How do I customize the validate behavior so that the user only gets an error after leaving the control (control looses focus) as opposed to validation on every entry?
For this instance when the user wants to enter 2:10 they get an error when they enter 2, again when they enter : and then again when they enter 1