Is it possible to create an AttachedEvent
for an ItemsControl
, which will be fired when the ItemsSource
or the Items
have changed?
Something that will be used like this:
<ItemsControl ItemsSource="{Binding ItemList}"
ext:ItemsControlHelper.ItemsChanged="OnItemsChanged">
...
</ItemsControl>
I think it should be possible to do this with the DependencyPropertyDescriptor
but I just can't wrap my head around the exact implementation with an AttachedEvent
.