What is the method that get raised when there is a change in the field ?
-
OnItemChanged();
-
OnFieldChanged();
-
OnPropertyChanged();
-
All of the above
Reveal answer
Fill a bubble to check yourself
C
Correct answer
Explanation
OnPropertyChanged() is the standard method called when a property value changes in data binding scenarios. This method implements INotifyPropertyChanged and notifies the UI that bound data has changed, triggering UI updates. OnItemChanged and OnFieldChanged are not standard Silverlight/WPF patterns.
AI explanation
OnPropertyChanged() is the standard method (often paired with the INotifyPropertyChanged interface in .NET) that is raised/invoked when a property's value changes, notifying subscribers such as data-bound UI elements. The other names are not the conventional framework method for this purpose.