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