digitalmars.D - Data-binding infrastructure.
- lurker (19/19) Jun 28 2010 Do you think Phobos could benefit by adding data-binding interfaces? The
- BLS (7/26) Jun 29 2010 I like the idea..
- Jacob Carlborg (4/42) Jun 30 2010 Why do we need to port the Mono code? This seems quite easy to implement...
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
Jun 28 2010
On 28/06/2010 18:36, lurker wrote: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, ...) ThanksI like the idea.. IMHO this could be done by porting and enhancing the Mono code, use Stevens dcollection lib, enhance dCollection with observable containers and you are nearly done. Due to the Mono license a phobos independent project is appropriate. my 2 cents, bjoern
Jun 29 2010
On 2010-06-29 12.36, BLS wrote:On 28/06/2010 18:36, lurker wrote:Why do we need to port the Mono code? This seems quite easy to implement. -- Jacob CarlborgDo 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, ...) ThanksI like the idea.. IMHO this could be done by porting and enhancing the Mono code, use Stevens dcollection lib, enhance dCollection with observable containers and you are nearly done. Due to the Mono license a phobos independent project is appropriate. my 2 cents, bjoern
Jun 30 2010