This question is locked. New answers and comments are not allowed.
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.
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.
Thanks
private RelatedSA selectedAppointment; public RelatedSA SelectedAppointment { get { return selectedAppointment; } set { if (value != selectedAppointment) { selectedAppointment = value; OnPropertyChanged("SelectedAppointment"); 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; VisibleRangeExecuted(CurrentVisibleDateRange); } } }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.
Thanks