Good Day
Can you help me please I am creating a calendar app in Xamarin Forms.
Is it possible to bind the Calendar appointments into API instead of this:
calendar.AppointmentsSource = new List<Appointment>()
{
new Appointment() {StartDate = DateTime.Today.AddDays(1),
EndDate = DateTime.Today.AddDays(2).AddTicks(-1),
Title = "Mom's Birthday",Color = Color.Red },
new Appointment() {
StartDate = DateTime.Today.AddDays(3).AddHours(17),
EndDate = DateTime.Today.AddDays(3).AddHours(22),
Title = "Big Game",Color = Color.Green },
new Appointment() {
StartDate = DateTime.Today.AddDays(11).AddHours(20),
EndDate = DateTime.Today.AddDays(12).AddHours(4),
Title = "Progress Party",Color = Color.Red
}
};
Having my class like this:
public class Appointment : IAppointment
{
public DateTime ToDate{ get; set; }
public DateTime FromDat{ get; set; }
public string Subject{ get; set; }
}
if it possible please can you guide me since I am new to Xamarin