Created
June 20, 2013 19:15
-
-
Save opavlyshak/5825731 to your computer and use it in GitHub Desktop.
Example of data binding for DevExpress WinForms BarButtonItem. BarButtonItem doesn't support data binding, for such properties as Enabled, for instance. Binder class allows to add data binding for Enabled property.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new BarButtonItemBinder(barButtonItem).DataBindings.Add( | |
"Enabled", | |
viewModel, | |
"CanExecute"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment