For similar behavior, such as controls related to object properties, for any type, you can implement the same interfaces.
Based on this thought, you can subclass ToolStripButton ( or the desired type for the binding ) and implement an IBindableComponent for it. This works for all source types and target types if they are not sealed . For example, a button on a toolbar:
public class BindableToolStripButton : ToolStripButton, IBindableComponent {
This will cause BindableToolStripButton to have its own .DataBindings property, while the base class ToolStripButton does not have such a property.
You will need to fill out implementation details using examples from Microsoft for ISite , IBindableComponent , IComponent, and any legacy interfaces.
You then added Instance Linking to any instance of BindableToolStripButton.
(Note: I only have snippets, so I will make my first community wiki forum and we will see how it works ...)
John k
source share