What should you do to ensure that the data source is updated whenever the FirstName property changes?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application contains a Person object with a FirstName property. You bind the Person object to a data source that is used in several controls. You need to ensure that the data source is updated whenever the FirstName property changes.
What should you do?

You are creating a Windows Presentation Foundation application by using Microsoft .NET Framework 3.5.
The application contains a Person object with a FirstName property. You bind the Person object to a data source that is used in several controls. You need to ensure that the data source is updated whenever the FirstName property changes.
What should you do?

A.
Use OneWay data binding.

B.
Use OneTime data binding.

C.
Create a PropertyChanged event handler in the application.

D.
Implement the INotifyPropertyChanged interface in the Person object.



Leave a Reply 0

Your email address will not be published. Required fields are marked *