WinRTXamlToolkit.Controls.Calendar.OnDayClick C# (CSharp) Méthode

OnDayClick() private méthode

If the day is a trailing day, Update the DisplayDate.
private OnDayClick ( DateTime selectedDate ) : void
selectedDate DateTime Inherited code: Requires comment.
Résultat 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();
            }
        }