Please consider the following code
class VMContainer:INotifyPropertyChanged
{
Type t;
VMContained contained;
public Type T
{
get
{
return this.t;
}
set
{
this.t = value;
this.OnPropertyChanged("T");
}
}
........
........
........
}
VMContainer and VMContained are two ViewModel classes.
Now I need to change one property(say, P1) of member instance “contained” whenever the Container class property T changes.How should I do that?
Please advise.
Simplest way would just be to set the value in the setter for
T:Update