I'm trying to access UIElements in the VisualTree of a ListView but the ItemsCollection is empty even though the ListView IsLoaded, IsInitialized and has items in DataContext.
How can I access UIElements in a ListView? Is there an event I can attach myself on to wait for the items to be accessible?
Thanks
You can subscribe to
ItemsContainerGenerator.StatusChangedand in the handler check whether the status isContainersGenerated:-