Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
        static void OnFormatChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            Spinner spinner = (Spinner)d;

            spinner.ValueToTextBoxText();
        }