When doing databinding does one have to implement INotifyPropertyChanged on the datacontext in WPF?
When doing databinding does one have to implement INotifyPropertyChanged on the datacontext in WPF?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. If you don’t intend for your object’s properties to change, or you don’t mind if the UI doesn’t reflect those changes, there’s no reason to implement INotifyPropertyChanged.
Further, if your object derives from DependencyObject and its properties are dependency properties, data binding will work without INotifyPropertyChanged.