I can't find the event that would get fired when a child is added or removed from a WPF panel. Does such an event exist and I am just missing it?
I couldn't find an event, but you might try the Panel.OnVisualChildrenChanged
method.
Alternatively, you could wrap your panel in a UserControl (perhaps called ObservablePanel?), which has an AddChild method that fires an event after adding the item to the panel.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With