Dec 04 2013

How do you get CSLA 3.02 BusinessListBase ListChanged event to identify the child object whose OnPropertyChanged triggered the event?

        <p>I have a project that is using CSLA 3.0.2.</p>
I have a BusinessListBase collection object that has child items that have an IsDefault property. When a child object has its IsDefault property set to true, I want to set the other child members IsDefault property to false. I am calling the OnPropertyChanged("IsDefault") in the child setter and I have that raising the collections ListChanged event. However, the sender of the event is the Collection object, not the child object that raised the event. Nor is the child item in the ListChangedEventArgs (e). How do I get a reference to the specific child instance that raised the event? Or should I be doing this some other way? Like getting a reference to the parent in the child setter and doing it there? Any help is appreciated.
Dec 04 2013

How do you get CSLA 3.02 BusinessListBase ListChanged event to identify the child object whose OnPropertyChanged triggered the event?

        <p>I have a project that is using CSLA 3.0.2.</p>

I have a BusinessListBase collection object that has child items that have an IsDefault property.

When a child object has its IsDefault property set to true, I want to set the other child members IsDefault property to false.

I am calling the OnPropertyChanged("IsDefault") in the child setter and I have that raising the collections ListChanged event. However, the sender of the event is the Collection object, not the child object that raised the event. Nor is the child item in the ListChangedEventArgs (e).

How do I get a reference to the specific child instance that raised the event?

Or should I be doing this some other way?

Any help is appreciated.

Dec 04 2013

How do you get CSLA 3.02 BusinessListBase ListChanged event to identify the child object whose OnPropertyChanged triggered the event?

        <p>I have a project that is using CSLA 3.0.2.</p>

I have a BusinessListBase collection object that has child items that have an IsDefault property.

When a child object has its IsDefault property set to true, I want to set the other child members IsDefault property to false.

I am calling the OnPropertyChanged("IsDefault") in the child setter and I have that raising the collections ListChanged event. However, the sender of the event is the Collection object, not the child object that raised the event. Nor is the child item in the ListChangedEventArgs (e).

How do I get a reference to the specific child instance that raised the event?

Or should I be doing this some other way?

Any help is appreciated.