WPF controls that are able to bind to ObservableCollection already have this code as they keep the collection of controls displayed on screen in sync with the changes in ObservableCollection. Try looking ot "OnMapChanged" method here https://github.com/dotnet/wpf/blob/main/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Controls/ItemContainerGenerator.cs