I have a RadListBox bound to an ObservableCollection<RelatedSA>. RelatedSA has a date property and when the selected item changes on the RadListBox, I want to have the ScheduleView go to that date. I have the following bound to the SelectedItem of my RadListBox.
private RelatedSA selectedAppointment;
public RelatedSA SelectedAppointment
if (value != selectedAppointment)
selectedAppointment = value;
DateTime apptDate = selectedAppointment.ServiceDate;
// change calendar date
DateSpan ds = new DateSpan();
ds.Start = new DateTime(apptDate.Year, apptDate.Month, apptDate.Day);
ds.End = ds.Start.AddDays(1);
CurrentVisibleDateRange = ds;
The ScheduleView is not changing dates when I select an item in the RadListBox. What do I need to do for this to happen? I am using MVVM.