private static void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Spinner spinner = (Spinner)d; spinner.ValueToTextBoxText(); if (spinner.ValueChanged != null) { spinner.ValueChanged(spinner, new RoutedPropertyChangedEventArgs <double>((double)e.OldValue, (double)e.NewValue)); } }
static void OnFormatChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { Spinner spinner = (Spinner)d; spinner.ValueToTextBoxText(); }