private static object CoerceIncrement(DependencyObject d, object value)
        {
            MaterialNumericUpDown numeric = (MaterialNumericUpDown)d;

            if (value == null)
            {
                return(numeric.Increment);
            }
            return(value);
        }
        private static object CoerceMaximum(DependencyObject d, object value)
        {
            MaterialNumericUpDown numeric = (MaterialNumericUpDown)d;

            if (value == null)
            {
                return(numeric.Maximum);
            }
            if ((double)value < numeric.Minimum)
            {
                numeric.Minimum = double.MinValue;
            }
            return(value);
        }
        private static void OnIncrementChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MaterialNumericUpDown numeric = (MaterialNumericUpDown)d;

            numeric.Increment = (double)e.NewValue;
        }