题
我使用 Telerik 演示调度程序作为我的基础,如它所示 http://www.telerik.com/community/forums/wpf/scheduler/uniqueid-property-how-to-access-it.aspx所以我实现了从 SQL 到这个调度程序的数据加载。现在我想实现拖放。那么,我怎样才能在调度程序上获得旧位置的预约值和新位置的值以及执行此操作的最佳技术是什么?我将使用这些值来实现 SQL 中约会日期的更新。
解决方案
private void OnAppointmentEdited(object sender, AppointmentEditedEventArgs e)
{
Appointment eAppo = e.Appointment as Appointment;
SessionAppointment ses = e.Appointment as SessionAppointment;
if(eAppo != null && ses != null)
{
DateTime dateStart = eAppo.Start; //new datestart
DateTime dateEnd = eAppo.End;//new dateend
string id = ses.UniqueId;//id
}
}
不隶属于 StackOverflow