Microsoft.Samples.KMoore.WPFSamples.DateControls.MonthCalendar.OnQueryNextCommand C# (CSharp) Method

OnQueryNextCommand() private static method

private static OnQueryNextCommand ( object target, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
target object
args System.Windows.Input.CanExecuteRoutedEventArgs
return void
        private static void OnQueryNextCommand(object target, CanExecuteRoutedEventArgs args)
        {
            MonthCalendar mcc = (MonthCalendar)target;

            args.CanExecute = MonthCalendarHelper.CompareYearMonth(mcc.VisibleMonth, mcc.MaxDate) < 0;
        }