在我的CustomerCollectionViewModel中,我有一个ObservableCollection<CustomerViewModel> CustomerList名为CurrentCountproperty 的属性,它返回CustomerList.Count().
在关联视图中,我将 CustomerList 绑定到 DataGrid,将 CurrentCount 绑定到标签。实际上,它们是许多其他相关属性,它们提供有关 CustomerList 的聚合信息。大约十几个左右。
我目前对 MVVM 的理解需要对UICustomerViewModel中SendPropertyChanged()的所有汇总摘要标签进行膨胀。是不是可能所有CustomerViewModel更新从被捕获的事件中冒出来的事件,DataGrid然后扇出以更新聚合标签。