Filtered WPF textbox
I think you can avoid inheritance here ("Favor Composition Over Inheritance") and use Attached Behavior instead. 

Also, did you take a look at MaskedTextBox from Extended WPF Toolkit (http://wpftoolkit.codeplex.com/wikipage?title=MaskedTextBox)?