mDataManager.MainModel.ClockModelList
.ToObservableChangeSet()
.WhenValueChanged(x => x.Clock.Name)
.Subscribe(newClockName =>
{
Debug.WriteLine("***** Clock name changed!"); // <- Fires only on initial values.
});
But this works:
mDataManager.MainModel.ClockModelList
.ToObservableChangeSet()
.Transform(x => x.Clock) // Have to transform...
.WhenValueChanged(x => x.Name) // ... because this one doesn't handle INPC beyond first level.
.Subscribe(newClockName =>
{
Debug.WriteLine("***** Clock name changed!");
});
This does not work:
But this works: