This question is locked. New answers and comments are not allowed.
Hi,
I am having a problem when saving some appointments. Most of the time it seems to work fine, however, on occasion the wrong values are being used when saving.
In my ViewModel I have a method which is bound to the appointment created event of the ScheduleView (this all works fine), however, on occasion, this method will receive data which does not match what appears on the UI prior to the save being clicked. The data appears to be the default values of the bound fields (E.g. a bound text box sometimes returns null for the text, and sometimes the date time picker for the start date returns the year 1000). So at a guess, I think that the save is running before the bindings have updated the source. I'm not sure how valid of a theory this is though.
FYI I have a custom appointment class that inherits AppointmentBase and a Custom appointment editor dialog. The majority of the time everything works without problem.
I'm not sure if this is a ScheduleView specific problem or a general Silverlight issue. Any advice would be useful.
I am having a problem when saving some appointments. Most of the time it seems to work fine, however, on occasion the wrong values are being used when saving.
In my ViewModel I have a method which is bound to the appointment created event of the ScheduleView (this all works fine), however, on occasion, this method will receive data which does not match what appears on the UI prior to the save being clicked. The data appears to be the default values of the bound fields (E.g. a bound text box sometimes returns null for the text, and sometimes the date time picker for the start date returns the year 1000). So at a guess, I think that the save is running before the bindings have updated the source. I'm not sure how valid of a theory this is though.
FYI I have a custom appointment class that inherits AppointmentBase and a Custom appointment editor dialog. The majority of the time everything works without problem.
I'm not sure if this is a ScheduleView specific problem or a general Silverlight issue. Any advice would be useful.