I am trying to understand how to update the UI if I have a read-only property that is dependent on another property, so that changes to one property update both UI elements
You could simply call
OnPropertyChanged(this, "bar");
from anywhere in this class...You cold even go like this:
public raz()
{
this.PropertyChanged += new PropertyChangedEventHandler(raz_PropertyChanged);
}
void raz_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
if(e.PropertyName == "foo")
{
onPropertyChanged(this, "bar");
}
}