private void PhoneNumber_TextChanged(object sender, TextChangedEventArgs e) { if (_errors == 0) { ((TextBox)sender).Text = InputHelper.FormatNumber(((TextBox)sender).Text); } }