private static void OnMinimumMinuteChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { NumericUpDownTime control = (NumericUpDownTime)d; if (control.FinalValueMinute < control.MinimumMinute) { control.FinalValueMinute = control.MinimumMinute; } }
private static void OnMinimumHourChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { NumericUpDownTime control = (NumericUpDownTime)d; if (control.FinalValueHour < control.MinimumHour) { control.FinalValueHour = control.MinimumHour; } }
private static void OnFinalValueHourChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { NumericUpDownTime control = (NumericUpDownTime)d; control.UpdateText(e.Property.Name); if (control.ValueHour != control.FinalValueHour) { control.ValueHour = control.FinalValueHour; } }
private static void OnValueMinuteChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { NumericUpDownTime control = (NumericUpDownTime)d; control.UpdateText(e.Property.Name); }