在Model-View-ViewModel体系结构WPF应用程序中实现ViewModel时,似乎有两个主要选择如何使其成为databindable.我已经看到了DependencyProperty用于View将要绑定的属性的实现,我已经看到了实现的ViewModel INotifyPropertyChanged.
DependencyProperty
INotifyPropertyChanged
我的问题是我应该何时优先选择其中一个?有任何性能差异吗?将ViewModel依赖项提供给WPF真的是个好主意吗?做出设计决定时还需要考虑什么?
architecture data-binding wpf dependency-properties mvvm
architecture ×1
data-binding ×1
dependency-properties ×1
mvvm ×1
wpf ×1