コード例 #1
0
		/// <summary>
		/// Initializes a new instance of the <see cref="MonthGridView"/> class.
		/// </summary>
		/// <param name="calendarMonthView">The calendar month view.</param>
		/// <param name="month">The month.</param>
		public MonthGridView(CalendarMonthView calendarMonthView, DateTime month)
		{
			_calendarMonthView = calendarMonthView;
			_currentMonth = month.Date;

			var tapped = new UITapGestureRecognizer(PTapped);
			AddGestureRecognizer(tapped);
		}
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MonthGridView"/> class.
        /// </summary>
        /// <param name="calendarMonthView">The calendar month view.</param>
        /// <param name="month">The month.</param>
        public MonthGridView(CalendarMonthView calendarMonthView, DateTime month)
        {
            _calendarMonthView = calendarMonthView;
            _currentMonth      = month.Date;

            var tapped = new UITapGestureRecognizer(PTapped);

            AddGestureRecognizer(tapped);
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CalendarDayView"/> class.
 /// </summary>
 /// <param name="mv">The mv.</param>
 public CalendarDayView(CalendarMonthView mv)
 {
     _mv             = mv;
     BackgroundColor = mv.StyleDescriptor.DateBackgroundColor;
 }
コード例 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CalendarDayView"/> class.
 /// </summary>
 /// <param name="mv">The mv.</param>
 public CalendarDayView(CalendarMonthView mv)
 {
     _mv = mv;
     BackgroundColor = mv.StyleDescriptor.DateBackgroundColor;
 }