예제 #1
0
        private static void OnValueChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            TimePickComponent control = obj as TimePickComponent;

            control.Hours   = ((TimeSpan)e.NewValue).Hours;
            control.Minutes = ((TimeSpan)e.NewValue).Minutes;
            control.Seconds = ((TimeSpan)e.NewValue).Seconds;
        }
예제 #2
0
        private static void OnTimeChanged(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            TimePickComponent control = obj as TimePickComponent;

            control.Value = new TimeSpan(control.Hours, control.Minutes, control.Seconds);
        }