O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Saving an Appointment Using the SaveAppointmentTask

New to Windows Phone 8 is the SaveAppointmentTask, which allows you to save an appointment via the phone’s built-in Calendar app.

SaveAppointmentTask contains various optional properties that allow you to prepopulate the appointment UI in the Calendar app when the task is shown. The following example demonstrates how to create a new appointment.

SaveAppointmentTask task = new SaveAppointmentTask    {        AppointmentStatus = AppointmentStatus.Busy,        StartTime = DateTime.Now.AddDays(1),        EndTime = DateTime.Now.AddDays(1).AddMinutes(15),        IsAllDayEvent = false,        Location = "Meeting room 10F",        Reminder = Reminder.FifteenMinutes,        Subject ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required