数据绑定属性POCO

编程入门 行业动态 更新时间:2024-10-24 06:29:47
本文介绍了数据绑定属性POCO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否有任何数据绑定,允许的任意两个CLR属性的实现 INotifyPropertyChanged的和 INotifyCollectionChanged ?这似乎是它应该是可以做到这样的事情:

Are there any data binding frameworks (BCL or otherwise) that allow binding between any two CLR properties that implement INotifyPropertyChanged and INotifyCollectionChanged? It seems to be it should be possible to do something like this:

var binding = new Binding(); binding.Source = someSourceObject; binding.SourcePath = "Customer.Name"; binding.Target = someTargetObject; binding.TargetPath = "Client.Name"; BindingManager.Bind(binding);

其中, someSourceObject 和 someTargetObject 只是波苏斯实现 INotifyPropertyChanged的。不过,我不知道这方面的任何BCL的支持,我不知道是否有允许这种现有框架

Where someSourceObject and someTargetObject are just POCOs that implement INotifyPropertyChanged. However, I am unaware of any BCL support for this, and am not sure if there are existing frameworks that permit this.

更新:给定没有现有的库可用,我采取它在我写我自己。正是在这里使用 。

UPDATE: Given that there is no existing library available, I have taken it upon myself to write my own. It is available here.

感谢

推荐答案

我写桁架以填补这一空白

更多推荐

数据绑定属性POCO

本文发布于:2023-07-27 11:54:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1222314.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:绑定   属性   数据   POCO

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!