Windows 8电话日期日历 [英] Windows 8 Phone Date Calendar

查看:80
本文介绍了Windows 8电话日期日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想显示一个日历,我们可以在这里创建特定日期和时间的约会。我正在使用Windows 8 Phone Panorama应用程序。点击特定日期时,我应该能够为特定日期创建预约



那么有人可以解释如何在Windows 8 Phone应用程序中使用日期日历来进行此操作吗?



谢谢

Hi,

I want to display a calendar where we can create appointments for particular date and time .I am using Windows 8 Phone Panorama application. When clicking on a particular date I should be able to create appointment for particular date

So could anybody explain how to make this operation using date calendar in Windows 8 Phone app?

Thank You

推荐答案

1。将以下语句添加到您的代码中

1. Add the following statement to your code
using Microsoft.Phone.Tasks;



2.将以下代码添加到您的应用程序中,无论您需要它,例如在按钮单击事件中。要测试此过程,可以将代码放在页面构造函数中。这是启动任务的代码。


2. Add the following code to your application wherever you need it, such as in a button click event. To test this procedure, you can put the code in the page constructor. This is the code to launch the task.

SaveAppointmentTask saveAppointmentTask = new SaveAppointmentTask();

saveAppointmentTask.StartTime = DateTime.Now.AddHours(2);
saveAppointmentTask.EndTime = DateTime.Now.AddHours(3);
saveAppointmentTask.Subject = "Appointment subject";
saveAppointmentTask.Location = "Appointment location";
saveAppointmentTask.Details = "Appointment details";
saveAppointmentTask.IsAllDayEvent = false;
saveAppointmentTask.Reminder = Reminder.FifteenMinutes;
saveAppointmentTask.AppointmentStatus = Microsoft.Phone.UserData.AppointmentStatus.Busy;

saveAppointmentTask.Show();


这篇关于Windows 8电话日期日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆