【发布时间】:2014-06-12 07:10:40
【问题描述】:
我想访问 windows phone 8 中的日历约会。 我正在使用以下代码。此代码将检索所有约会:
private void ButtonAppointments_Click(object sender, RoutedEventArgs e)
{
Appointments appts = new Appointments();
//Identify the method that runs after the asynchronous search completes.
appts.SearchCompleted += new EventHandler<AppointmentsSearchEventArgs>(Appointments_SearchCompleted);
DateTime start = DateTime.Now;
DateTime end = start.AddDays(7);
int max = 20;
//Start the asynchronous search.
appts.SearchAsync(start, end, max, "Appointments Test #1");
}
但我想获取并显示特定的日历。 例如,我的 Outlook 帐户中有三个日历:Mike 的日历、工作的日历、生日日历。我只想在我的应用中显示 Mike 的日历约会
在默认日历中,我们可以轻松隐藏或显示特定日历,但我们如何在自己的应用程序中做类似的事情????
【问题讨论】:
标签: c# windows-phone-8 calendar appointment