I publish a Project on Nokia Projects with a Behavior to validate text input in Windows Phone 8 and Windows 8 using XAML:
Also i publish a package in nuget for windows 8 and another for windows phone 8:
(The behaviors in Windows 8 are from WinRTBehaviors by Joost Van Schaik, thank you very much guy!!)
Hope This can be of some help!!