private void TextBox_PreviewTextInput(object sender, TextCompositionEventArgs e) { e.Handled = !FieldValidation.IsValidChar(e.Text); }