更新时间:2022-04-08 07:19:44
尽管您可以将ViewModel实现为 DependencyObject
具有依赖项属性,大多数人都认为***使用实现 INotifyPropertyChanged
的POCO对象...看一下这篇文章,详细介绍了这两种方法之间的比较。还有一个 SO问题
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