Hello: I'd REALLY like to make a Panel that knows when its Children collection is being modified.
It's a non virtual property, and the internal private UIElementCollection doesn't implement INotifyCollectionChanged ...so I've had to try several other techniques.
The first was to wrap the UIElementCollection within an observable collection that I've wired up for events, and new the property:
public new WrappedObservableUIElementCollection Children{ ...get {return _WrapperChildren;} }
But it appears that the ListControl is adding items to the base Panel's collection directly, bypassing my new property.
I then saw a tantalizing suggestion presented here: http://themechanicalbride.blogspot.com/2008/10/building-observable-model-in.html
And it really looks like it's the right direction, considering UIElementCollection derives from BindableObject... But after several tries never got it to work...(maybe I'm doing it wrong. Probably).
The point is...I would REALLY like to know when the list control is adding items to the panel -- rather than be the last to be made aware of changes, when it kicks into the Measurement/Arrangement stage.
Any ideas?