Being an Appointments Provider Source

The source app can launch the calendar with a call to the static AppoinmentManager.ShowTimeFrameAsync method from the Windows.ApplicationModel.Appointments namespace. For example:

// Show the calendar for today await AppointmentManager.ShowTimeFrameAsync(         DateTimeOffset.Now, TimeSpan.FromDays(1)); // Show the calendar for this week await AppointmentManager.ShowTimeFrameAsync(         DateTimeOffset.Now, TimeSpan.FromDays(7));

The only requirement is that the source app must be visible at the time of this call.

To show the appointment flyout, you call AppointmentManager.ShowAddApointmentAsync, which looks a lot like ContactManager.ShowContactCard. It expects an Appointment ...

Get Universal Windows® Apps with XAML and C# 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.