Tiago (ITG) asked 2017-07-28 00:36:18 UTC
In order to be bindable, components must implement IBindableComponent.
I made a set of components (MenuItem, etc) that implement IBindableComponent (and IHaveName for simplicity sake).
The implementation of IBindableComponent is awkward since one must create BindingContext and DataBindings properties both on Wisej and on WinForms namespaces. Yes, that's right. Both properties must be created twice.
Just after executing binding (changing the form property), an exception is raised: "Object reference not set to an instance of an object". I can't debug Wisej.Core code and need some help to fix this issue.
The nicest thing would be for ITG to implement IBindableComponent and IHaveName interfaces on your own components (something Microsoft should have done in the first place). This change request shouldn't be that hard to implement and there is no risk of breaking existing code.
WinForms and Wisej samples attached.
Tiago (ITG) asked 2017-07-28 00:36:18 UTC
In order to be bindable, components must implement IBindableComponent.
I made a set of components (MenuItem, etc) that implement IBindableComponent (and IHaveName for simplicity sake).
The implementation of IBindableComponent is awkward since one must create BindingContext and DataBindings properties both on Wisej and on WinForms namespaces. Yes, that's right. Both properties must be created twice.
Just after executing binding (changing the form property), an exception is raised: "Object reference not set to an instance of an object". I can't debug Wisej.Core code and need some help to fix this issue.
The nicest thing would be for ITG to implement IBindableComponent and IHaveName interfaces on your own components (something Microsoft should have done in the first place). This change request shouldn't be that hard to implement and there is no risk of breaking existing code.
WinForms and Wisej samples attached.