Can someone explain proper use of OnChildChanged()?

Can someone explain proper use of OnChildChanged()?

Old forum URL: forums.lhotka.net/forums/t/6596.aspx


rsbaker0 posted on Wednesday, March 11, 2009

The scenario I am interested in is the simple BB parent containing a BLB. I'd like to trigger a recomputation in the parent based on changes to an object in the list.

If a property of a child object in the BLB is changed, then OnChildChanged is called with listArgs only, and propertyArgs is null.

Is this what I should be expecting?

There are some other bugs that may have subsequently been addressed that this behavior changes after the object has been deserialized (e.g. deserializing causes an event to be explicitly hooked that then causes OnChildChanged to be invoked with propertyArgs provided).

I've looked at the 2008 book but it doesn't clarify this particular idiosyncrasy.

 

Copyright (c) Marimer LLC