Example #1
0
        private static void OnFormatChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            DateTimeUpDown dateTimeUpDown = o as DateTimeUpDown;

            if (dateTimeUpDown != null)
            {
                dateTimeUpDown.OnFormatChanged(( DateTimeFormat )e.OldValue, ( DateTimeFormat )e.NewValue);
            }
        }
Example #2
0
 private static bool IsTimeFormatStringValid(object value)
 {
     return(DateTimeUpDown.IsFormatStringValid(value));
 }