Masking input to a WPF TextBox February 15, 2007Posted by Karl Hulme in .Net, C#, WPF, XAML. trackbackHow do you go about masking the input to a textbox. Say you wanted to allow numbers but not letters or any punctuation, how would you do it? Well the simplest way is to trap the TextChanged event… private void TextChangedEventHandler(Object sender, EventArgs e) { TextBox textBox = sender as T..