Hi Hall,
I'm trying to make Silverlight 3 validation working with IronPython but
it seems there is necessary a small manual step.
I followed some tutorials and this should be enough:
1) Set binding to: Mode=TwoWay, ValidatesOnExceptions=True,
NotifyOnValidationError=True
2) Raise Exception in the setter
Then the control with bound property should became invalid.
I tried it with TextBox and I failed - the control still appeared valid
even when the exception was raised.
The solution is to manually set the control into invalid state (based on
BindingValidationError event) - see attached files for example.
Does anybody know why the control is not set into invalid state
automatically?
--
-- Lukáš
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com