private static void OnFormatChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) { DateTimeUpDown dateTimeUpDown = o as DateTimeUpDown; if (dateTimeUpDown != null) { dateTimeUpDown.OnFormatChanged(( DateTimeFormat )e.OldValue, ( DateTimeFormat )e.NewValue); } }
private static bool IsTimeFormatStringValid(object value) { return(DateTimeUpDown.IsFormatStringValid(value)); }