예제 #1
0
        private static void OnDaysChanged(DependencyObject d, DependencyPropertyChangedEventArgs eventArgs)
        {
            DateMonth m = d as DateMonth;
            var       currentCollection = eventArgs.NewValue as IEnumerable <int>;

            m?.Reload(currentCollection);
        }
예제 #2
0
        private static void OnYearMonthChange(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            DateMonth control = d as DateMonth;

            if (control != null)
            {
                control.HandleChangedMonthYear(e.NewValue);
            }
        }