Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Data Binding between TextEditor.Enabled and CheckEditor.Checked
posted

I have a couple of text editors that I want to enable/disable based on the the state of a check editor.

I can do this with CheckedChange event of the check editor but I want to use data binding.

I need to bind the property "Enabled" of a TextEditor to the property "Checked" of a CheckEditor.

This will work:

textEditor.Add ( "Enabled", checkEditor, "Checked" );

However, this means that the text Editor is enabled if the check editor is checked.  For better or worse (naming convention), I want to change the text of the check editor (based on customers' preferences) and the meaning of its property "Checked" is reversed.

How do I bind the property "Enabled" of the TextEditor to the negated value of the property "Checked" of the Check Editor?

Parents Reply Children
No Data