Data-binding infrastructure.

lurker lurker at mailinator.com
Mon Jun 28 09:36:27 PDT 2010


Do you think Phobos could benefit by adding data-binding interfaces? The
purpose is to provide the infrastructure necessary so that other libraries
(GUI Toolkits, Validation, ORMs, etc) can inter-operate seamlessly.

In .NET there's a whole set of interfaces for this purpose. They don't have a
great design but the fact that they are standard makes possible to create an
object that can be bound everywhere and performs validation everywhere
(everywhere been, windows client, web application or web service).

You can see all interfaces related to data-binding here:
http://msdn.microsoft.com/en-us/library/41e17s4b.aspx

But the more used are these three:

INotifyPropertyChanged
Provides an event to notify listeners that a property has changed.

IDataErrorInfo
Provides methods that allow validating and display corresponding GUI elements
to the user.

IBindingList
Provides notification when a collection has changed (elements added/removed,
clear, update, ...)

Thanks


More information about the Digitalmars-d mailing list