Hi Christopher,
After reviewing the shared sample, it appears that the
Events property is of type ObservableCollection<SchedulerAppointments>,
but it is not being initialized properly. This is likely causing the issue
where the Events are not being displayed correctly.
To resolve this issue, you can initialize the
ObservableCollection property before adding any values to it as mentioned in
the below code snippet.
[XAML]
Events = new ObservableCollection<SchedulerAppointment>();
var ev = new SchedulerAppointment
{
StartTime =
eventArgs.VisibleDates.First().AddHours(8),
EndTime =
eventArgs.VisibleDates.First().AddHours(9),
Subject = "Brush Teeth",
Background = new
SolidColorBrush(Color.FromArgb("#FFFC571D"))
};
Events.Add(ev);
|
We have modified your sample to achieve your requirement and
please get it from below attachment.
Regards,
Eswaran
Attachment:
SchedExample_22a25c8e.zip