DataBinding to the opposite value of a boolean

added by codewithpassion
11/27/2010 7:14:14 PM

0 Kicks, 78 Views

Trying to achieve something similar to: button1.DataBindings.Add("Enabled", _model, "IsTrue"); button2.DataBindings.Add("Enabled", _model, "!IsTrue"); where IsTrue is a boolean property of my _model variable, of course the second line doesn't work as binding only supports binding to properties....