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
In order to define a DependencyProperty in your view model, your view model class must derive from DependencyObject. Otherwise the DependencyProperty won't work right.
Do you really need the property to be a DependencyPropety? Have you looked into implementing INotifyPropertyChanged instead?