So the object's "toolTip", "label" and "icon" properties get propagated through to the buttons added to the button bar, but the enabled property does not. The code above simply fools the binding in to action by calling a method as part of the bind. When the property changes, that method will get called again and the button's enabled state will be set correctly.
0 comments:
Post a Comment