WinRTXamlToolkit.Controls.Calendar.OnDayClick C# (CSharp) Method

OnDayClick() private method

If the day is a trailing day, Update the DisplayDate.
private OnDayClick ( DateTime selectedDate ) : void
selectedDate DateTime Inherited code: Requires comment.
return void
        internal void OnDayClick(DateTime selectedDate)
        {
            Debug.Assert(DisplayMode == CalendarMode.Month, "DisplayMode should be Month!");
            int i = DateTimeHelper.CompareYearMonth(selectedDate, DisplayDateInternal);

            if (SelectionMode == CalendarSelectionMode.None)
            {
                LastSelectedDate = selectedDate;
            }

            if (i > 0)
            {
                OnNextClick();
            }
            else if (i < 0)
            {
                OnPreviousClick();
            }
        }