Hi,
I'm trying to add an appointment to my ScheduleView using:
The above code works, but when I change the End date of myAppointment to myAppointment.End = new DateTime(2012, 7, 31, 24, 00, 00); I'm getting a XamlParseException.
How should I be adding a 24hour appointment? Should it be just myAppointment.End = new DateTime(2012, 7, 31, 23, 59, 00);?
Thanks,
Mark
I'm trying to add an appointment to my ScheduleView using:
var appointments = new ObservableCollection<Appointment>();
Appointment myAppointment =
new
Appointment();
myAppointment.Subject =
"Appointment Here"
;
myAppointment.Start =
new
DateTime(2012, 7, 31, 00, 00, 00);
myAppointment.End =
new
DateTime(2012, 7, 31, 2, 00, 00);
appointments.Add(myAppointment);scheduleView.AppointmentsSource = appointments;
The above code works, but when I change the End date of myAppointment to myAppointment.End = new DateTime(2012, 7, 31, 24, 00, 00); I'm getting a XamlParseException.
How should I be adding a 24hour appointment? Should it be just myAppointment.End = new DateTime(2012, 7, 31, 23, 59, 00);?
Thanks,
Mark