I want to validate (in some simple way) if the input text for a textbox is a number, I would use this code: LINK
But here's a problem: I use .NET 4.0 not 4.5, so I don't havePreviewTextInput event.
I could use TextChanged, but now it doesn't have e.Handled validator. 
Is there any simple solution for this (I want to avoid tons of code)?
 
     
     
    