更新时间:2022-04-08 07:19:50
尽管可以将ViewModel实现为 DependencyObject
具有依赖属性,大多数人都同意使用实现 INotifyPropertyChanged
的POCO对象更好...查看这篇文章。另外还有一个关于这个
Although you can implement a ViewModel as a DependencyObject
with dependency properties, most people agree that it's better to use a POCO object implementing INotifyPropertyChanged
... Have a look at this article by Kent Boogaart for a detailed comparison between the two approaches. There's also a SO question about this