WPF: How to bind to a nested property?

后端 未结 3 1224
清歌不尽
清歌不尽 2020-12-05 06:54

I can bind to a property, but not a property within another property. Why not? e.g.



        
3条回答
  •  暖寄归人
    2020-12-05 07:27

    All I can think of is that the ParentProperty is being changed after the Binding is created, and it does not support change notification. Every property in the chain must support change notification, whether it be by virtue of being a DependencyProperty, or by implementing INotifyPropertyChanged.

提交回复
热议问题