public override View GetSampleContent(Context context) { /************ **Calendar** ************/ calendar = new SfCalendar(context); calendar.ViewMode = ViewMode.MonthView; calendar.ShowEventsInline = true; getAppointments(); calendar.DataSource = appointmentCollection; calendar.HeaderHeight = 100; //Month View Settings MonthViewLabelSetting labelSettings = new MonthViewLabelSetting(); labelSettings.DateLabelSize = 14; MonthViewSettings monthViewSettings = new MonthViewSettings(); monthViewSettings.MonthViewLabelSetting = labelSettings; monthViewSettings.SelectedDayTextColor = Color.Black; monthViewSettings.TodayTextColor = Color.ParseColor("#1B79D6"); monthViewSettings.InlineBackgroundColor = Color.ParseColor("#E4E8ED"); monthViewSettings.WeekDayBackgroundColor = Color.ParseColor("#F7F7F7"); calendar.MonthViewSettings = monthViewSettings; //Main View mainView = new FrameLayout(context); mainView.AddView(calendar); calendar.UpdateCalendar(); return(mainView); }
/************************ **Apply Changes Method** ************************/ public void OnApplyChanges() { calendar.ViewMode = viewMode; calendar.UpdateCalendar(); }