notonyournelly[CodePlex] We currently don't validate dates between events in the GUI. E.g. the user is not told if they enter a death date that is before the birth date.
In the Details pane GUI, consider using the CoerceValueCallback to enforce inter-event rules. Ideally, instead of marking a textbox as 'red' for an invalid date, I'd suggest marking the textbox with 'yellow' to indicate a possibly invalid date. An appropriate
tooltip (e.g. quotThe entered date is before so-and-so's birth datequot) would be great! [I suggest a 'warning' instead of an 'error' as the user might be correcting errors in the record, and hasn't gotten to the other event(s) yet.]
notonyournelly[CodePlex]
We currently don't validate dates between events in the GUI. E.g. the user is not told if they enter a death date that is before the birth date.
In the Details pane GUI, consider using the CoerceValueCallback to enforce inter-event rules. Ideally, instead of marking a textbox as 'red' for an invalid date, I'd suggest marking the textbox with 'yellow' to indicate a possibly invalid date. An appropriate tooltip (e.g. quotThe entered date is before so-and-so's birth datequot) would be great! [I suggest a 'warning' instead of an 'error' as the user might be correcting errors in the record, and hasn't gotten to the other event(s) yet.]
A blog entry about CoerceValueCallback:
http://wpf.2000things.com/2010/12/09/150-an-example-of-using-propertychanged-and-coercevalue-callbacks/
http://stackoverflow.com/questions/6845405/how-to-propertly-use-coercevaluecallback-in-a-custom-wpf-usercontrol