For example
class child : ObservableObject{
private int _prop;
public int prop{
get {
return _prop;
}
set {
_prop=value;
OnPropertyChanged("prop");
}
}
class parent : ObservableObject{
private child _mychild;
public child mychild{
get {
return _mychild;
}
set {
_mychild=value;
OnPropertyChanged("mychild");
OnPropertyChanged("pow");
}
}
public int pow{
return _mychild.prop*2;
}
}
parent myobj;
myobj.child.prop=1;
How do I get notified that bar.z is updated? I have binded the nested property and updates the view, but the part where bar.pow is binded does not get updated.
<Textbox Text={Binding myobj.child.prop}/>
<Textbox Text={Binding myobj.pow}/>
What im trying to do is update the second textbox when the first textbox is updated.