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 ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.