![](/img/trans.png)
[英]Binding imageSource property change in List which is in-turn inside an object which is hosted in a list
[英]Binding a property in a object list which is in-turn a property of another list from View to ViewModel
我有一个属性(文本框),它是列表的一部分。 该列表是另一个列表(类)中的一个属性。 现在,当我在该文本框中编写内容时,祖先应该会更新。 我已经尝试过RaisePropertyChanged(),但是没有解决。 谁能给我正确的语法?
绑定列表时,应查看INotifyCollectionChanged 。 RaisePropertyChanged传播列表本身(而不只是其中的一项)的更改。 如果绑定到GUI,则GUI将检查更改并在原位置看到相同的旧列表,因此无需采取进一步措施。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.