This is a migrated thread and some comments may be shown as answers.

Calendar Appointments

1 Answer 42 Views
This is a migrated thread and some comments may be shown as answers.
Wiseman
Top achievements
Rank 1
Wiseman asked on 29 Aug 2016, 09:03 AM

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

 

 

1 Answer, 1 is accepted

Sort by
0
Tsvyatko
Telerik team
answered on 31 Aug 2016, 12:38 PM
Hi Wiseman,

Thank you for contacting us! You can find an appointments setup in xaml that uses binding in our QSF sample application. Its source code is located in the components installation folder - [Program Files]\Telerik\UI for Xamarin R2 2016\QSF\.

The sample itself is located in Examples\Calendar\Appointments subfolder.

Give it a try and let us know if this helps.

Regards,
Tsvyatko
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
Wiseman
Top achievements
Rank 1
Answers by
Tsvyatko
Telerik team
Share this question
or