public MonthGridView(CalendarMonthView calendarMonthView, DateTime month) { _calendarMonthView = calendarMonthView; _currentMonth = month.Date; var tapped = new UITapGestureRecognizer(p_Tapped); this.AddGestureRecognizer(tapped); }
protected override void OnModelSet (VisualElement model) { _view = (CalendarView)model; base.OnModelSet (model); var calendarView = new CalendarMonthView(DateTime.Now, true); calendarView.OnDateSelected += (date) => { _view.NotifyDateSelected(date); }; base.SetNativeControl (calendarView); }
public override void ViewDidLoad() { MonthView = new CalendarMonthView(); MonthView.OnDateSelected += (date) => { Console.WriteLine(String.Format("Selected {0}", date.ToShortDateString())); }; MonthView.OnFinishedDateSelection += (date) => { Console.WriteLine(String.Format("Finished selecting {0}", date.ToShortDateString())); }; MonthView.IsDayMarkedDelegate += (date) => { return (date.Day % 2==0) ? true : false; }; View.AddSubview(MonthView); }
public override void ViewDidLoad() { MonthView = new CalendarMonthView(); MonthView.OnDateSelected += (date) => { Console.WriteLine(String.Format("Selected {0}", date.ToShortDateString())); }; MonthView.OnFinishedDateSelection += (date) => { Console.WriteLine(String.Format("Finished selecting {0}", date.ToShortDateString())); }; MonthView.IsDayMarkedDelegate += (date) => { return((date.Day % 2 == 0) ? true : false); }; View.AddSubview(MonthView); }
public override void ViewDidLoad() { MonthView = new CalendarMonthView(); MonthView.Frame = new System.Drawing.RectangleF(new PointF(0, 152), MonthView.Frame.Size); ChangedSelecting(); View.AddSubview(MonthView); TableView = new UITableView(new RectangleF(0, 0, 320, 150), UITableViewStyle.Grouped); TableView.DataSource = new DateSource(this); TableView.Delegate = new DateDelegate(this); TableView.SelectRow(NSIndexPath.FromRowSection(0, 0), true, UITableViewScrollPosition.Top); this.View.AddSubview(TableView); }
public override void ViewDidLoad() { MonthView = new CalendarMonthView(); MonthView.Frame = new System.Drawing.RectangleF(new PointF(0,152), MonthView.Frame.Size); ChangedSelecting(); View.AddSubview(MonthView); TableView = new UITableView(new RectangleF(0,0,320,150), UITableViewStyle.Grouped); TableView.DataSource = new DateSource(this); TableView.Delegate = new DateDelegate(this); TableView.SelectRow(NSIndexPath.FromRowSection(0,0), true, UITableViewScrollPosition.Top); this.View.AddSubview(TableView); }
public override void ViewDidLoad() { MonthView = new CalendarMonthView(new RectangleF(0,0, 640, 1024), new List<CalendarEvent> { new CalendarEvent {Key = 0, EventName = 'Test', EventTme ='2p', EventDate = new DateTime(2012, 8, 7, 14, 0, 0, 0)} }); MonthView.eventSelected += (evt, rect) => { //Do some stuff to handle the event being selected, the rectangle can be used //to present a popover. } View.AddSubview(MonthView); }
public CalendarDayView (CalendarMonthView mv) { _mv = mv; BackgroundColor = UIColor.White; }
public MonthGridView(CalendarMonthView calendarMonthView, DateTime month, DateTime day) { _calendarMonthView = calendarMonthView; _currentDay = day; _currentMonth = month.Date; }
public CalendarDayView(CalendarMonthView mv) { _mv = mv; BackgroundColor = UIColor.White; }
public CalendarDayView(CalendarMonthView mv) { _mv = mv; BackgroundColor = mv.StyleDescriptor.DateBackgroundColor; }