Why ControlBindingsCollection.Add's datasource is an object and not ipropertynotifychanged? | بلاگ

Why ControlBindingsCollection.Add's datasource is an object and not ipropertynotifychanged?

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

On the method

ControlBindingsCollection.Add Method (String, Object, String, Boolean, DataSourceUpdateMode, Object)

The second parameter is the dataSource, of the type object.

From my testing, this dataSource has to implement the interface IPropertyNotifyChanged, without which the binding will not work.

My question is, why is it that in that method, it takes in an Object for the dataSource, instead of IPropertyNotifyChanged? Is there other ways that one can do the binding without inheriting the IPropertyNotifyChanged?

I've searched the internet but can't find any relevant information.

asked 2 mins ago
Graviton

...
نویسنده : استخدام کار بازدید : 5 تاريخ : سه شنبه 24 بهمن 1396 ساعت: 8:50