private ObservableCollection <CustomAppointment> GenerateAppointments() { var app1 = new CustomAppointment { Start = DateTime.Today.AddHours(8), End = DateTime.Today.AddHours(9), Subject = "This Appointment cannot be dragged and resized as it is ReadOnly.", IsReadOnly = true }; app1.Resources.Add(this.ResourceTypeSource.First().Resources[1] as Resource); return(new ObservableCollection <CustomAppointment> { app1 }); }
private ObservableCollection<CustomAppointment> GenerateAppointments() { var app1 = new CustomAppointment { Start = DateTime.Today.AddHours(8), End = DateTime.Today.AddHours(9), Subject = "This Appointment cannot be dragged and resized as it is ReadOnly.", IsReadOnly = true }; app1.Resources.Add(this.ResourceTypeSource.First().Resources[1] as Resource); return new ObservableCollection<CustomAppointment> { app1 }; }