I have Control in which I bind my own class Element with “DataBindings”. If I change “Width” and “Height”, for example, in “E”, Control change the same properties as well. But other side it don’t work.
this.DataBindings.Add("Width", E, "Width");
this.DataBindings.Add("Height", E, "Height");
What is the best way to fix it? Only by hands, problem that there is many properties? Or exists something like “DataBindings”?
P.S. Element not inherited from any class, he haven’t “DataBindings”.
Thanks!
To get it working both ways the following must be present:
INotifyPropertyChangedModeof the Binding must beTwoWayEDIT: Just saw you are using WinForms – I’m not shure it works there the same way!