thanks for the documentation, it really helps. however, as I said before, it will help even better some working example with business template application.
reason for this posting is different however. I think I found a bug in the sample provided above:
in the ScheduleViewViewModel.cs file there's a method called GenerateAppointments, that looks like this:
private void GenerateAppointments(DateSpan dateSpan)
this.IsLoading = true;
ScheduleViewRepository.Context.GetSqlAppointmentsByRangeQuery(dateSpan.Start, dateSpan.End)).Completed += (o, e) =>
this.Appointments.AddRange((o as LoadOperation).Entities.Select(a => a as SqlAppointment));
this.IsLoading = false;
I think that the first line in the method (clearing appointments) should be right before the AddRange call. At least in my case here, I have this method called 3 times on visibility range changed event and instead of generating 2 appointments that I have saved in the database, it shows 6 : every appointment is duplicated 3 times basically. This must be tested in the following way: you must get those appointments right on the screen (not playing with the control to get to them, but directly to show on the screen after the RIA call.
I wonder if its just my environment causing this even to be fired 3 times, but anyway, just wanted to point it out and see if anybody else faced the same issue and if this is really a bug in the example.
Thank you in advance, George