Bind and show ItemsControl. ItemContainerGenerator will launch and generate items as part of a data binding cycle.
If you really need to manually start the generator, you can do this by calling IItemContainerGenerator.StartAt. This is an explicit implementation of the interface, so you will need to distinguish the ItemsControl.ItemContainerGenerator property, for example. ((IItemContainerGenerator)(listBox.ItemContainerGenerator)).StartAt(...); . But manually starting the generator is very rarely needed in the application code.
source share