Folks, I am binding the properties of an EF4 created entity to a screen full
of controls in the usual way. The default validation behaviour is acceptable
for now, as exceptions from the setters or my validators put a red border
around the guilty controls.

 

I have other controls like an error icon and the Save button which I'd like
to bind to the validity and consistency of the *whole* entity. Is there some
plumbing in place that can I use to bind controls to the overall state of
the entity? For example, the Save button is disabled if there are 1 or more
property errors.

 

Another thing I have to consider is giving an indication in the UI of any
controls that have had their values changed. I'm wondering if there is a
simple way of making controls automatically change colour when their value
becomes changed/dirtied via binding. (Changing control colours is not
normally a polite thing to do in the UI, but it would be okay for my demo).

 

Cheers,

Greg

_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf

Reply via email to