private void SizeNumericTextBox_ValueChanged(object sender, RoutedEventArgs e) { var textBox = sender as NumericTextBox; if (textBox != null) textBox.Text = textBox.Value.ToString(); }