private static void IsStartValidateCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { NumbericTextBox textBox = d as NumbericTextBox; if ((bool)e.NewValue) { textBox.ValidateTextBox(); } }