我有一个Person没有实现的类INotifyPropertyChanged。我的 ViewModel 有一个 type 的属性Person。在我的视图中,其中一个面板具有MyViewModel.SelectedPersonas DataContext,因此我将一些TextBoxes 绑定到Weight,Height和BodyMassIndex属性。
碰巧是从andBodyMassIndex计算的,但是由于不通知自己的更改,因此每次我编辑or之一时,都不会更新。WeightHeightPersonHeightWeightBodyMassIndex
我的问题是:如何textboxBodyMassIndex使用“侦听”其他两个文本框“ValueChanged”事件的 EventTrigger(或任何适当的其他方式)请求 Text 属性的“刷新”?
谢谢阅读!