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

OnQueryPreviousCommand() private static method

private static OnQueryPreviousCommand ( object target, System.Windows.Input.CanExecuteRoutedEventArgs args ) : void
target object
args System.Windows.Input.CanExecuteRoutedEventArgs
return void
        private static void OnQueryPreviousCommand(object target, CanExecuteRoutedEventArgs args)
        {
            MonthCalendar mcc = (MonthCalendar)target;
            args.CanExecute = (MonthCalendarHelper.CompareYearMonth(mcc.VisibleMonth, mcc.MinDate) > 0);
        }