阅读背景:

将一个属性绑定到另一个属性并链接/触发OnPropertyChanged

来源:互联网 

I'm binding to properties from XAML in a WPF application, but this query is about raising 'PropertyChanged' events on one class property when another is raised in a different class/object. One use case is where a combobox ItemsSource binds to a property (PropB in my simplified example below) and that property returns a collection based on other properties (PropA below). PropB in class B needs to raise PropertyChanged when PropA in class A changes, but class A does not reference class B.I'm binding to properties from XAML in a WPF ap




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: