I have a parent object called Page that has a List of objects called Control:
public class Page
{
List<CustomControl> controls {get;set;}
}
The CustomControl class has the following defintion:
public class CustomControl
{
string Name {get;set;}
string Value {get;set;}
}
Say for instance the Page class has two CustomControls A and B. Is it possible to Notify Custom Control B when the property Value of Custom Control A changes so that it can change some of its properties.
I was thinking of implementing the INotifyPropertyChanged event on the CustomControl class now how do I notify an instance of the CustomControl when another instance of the same class has some property of its Modified.