Exemplo n.º 1
0
        public void CreateCalendar()
        {
            rangeEnabled            = false;
            daysofMonth             = CalendarCalculations.CalculateMonthDays(selectedDate);
            MonthTitle_UILabel.Text = selectedDate.ToString("dd MMMMM yyyy dddd");
            var source = new MonthCollectionViewSource(daysofMonth);

            source.DayItemSelected    += Source_DayItemSelected;
            MonthCollectionView.Source = source;
        }
Exemplo n.º 2
0
        public void CreateCalendarForRange(RangeModel rangeModel)
        {
            dateRangeModel          = rangeModel;
            rangeEnabled            = true;
            daysofMonth             = CalendarCalculations.CalculateMonthDays(selectedDate, true);
            MonthTitle_UILabel.Text = selectedDate.ToString("dd MMMMM yyyy dddd");
            var source = new MonthCollectionViewSource(daysofMonth, rangeModel);

            source.selectedDays = selectedDates;
            //source.DayItemSelected += Source_DayItemSelected;
            source.DisableDeSelect     = true;
            MonthCollectionView.Source = source;
        }