Hi there,
I have made substantial headway with setting up my models, services, JSON, and Viewmodels. I am now up to designing my Views. I have created a working SFSchedule, however I can't seem to add/remove custom appointments to this.
I have already gone through all of the SFSchedule Docs and I am coming up short each time. I have created an instance of SFSchedule, but cannot initialise it with SFSchedule(this) in my Mainpage.xaml.cs codebehind.
I am using ScheudleView.WorkWeek, and so I have successfully set all of the viewHeaderStyles to my liking, however when it comes to adding appointments in timeslots I can't seem to access 'SetContentView(schedule)' or schedule.ItemSource = meetings.
using Syncfusion.SfSchedule.XForms;
using System;
using Xamarin.Forms;
public TimetablePage()
{
InitializeComponent();
SfSchedule schedule = new SfSchedule();
schedule.ScheduleView = ScheduleView.WorkWeekView;
ViewHeaderStyle viewHeaderStyle = new ViewHeaderStyle();
viewHeaderStyle.BackgroundColor = Color.FromHex("#009688");
viewHeaderStyle.DayTextColor = Color.FromHex("#FFFFFF");
viewHeaderStyle.DateTextColor = Color.FromHex("#FFFFFF");
viewHeaderStyle.DayFontFamily = "Arial";
viewHeaderStyle.DateFontFamily = "Arial";
schedule.ViewHeaderStyle = viewHeaderStyle;
schedule.SelectedDate = null;
CreateAppointments();
schedule.ItemSource = Meetings; // Does not contain this definition
SetContentView(schedule); // Does not exist in current context.
}