Can someone give example of Dependency Property in ViewModel in WPF passed as datacontext to view. Will this require inheriting from DependencyObject? Lets say I want ListBox
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