When data items are shown in the user interface (UI), the system creates a UIElement subtree for the data items. The system also creates an ItemAutomationPeer for each data item. When the UI for the data item is created, this TabItemWrapperAutomationPeer is also created. The two peers then merge to form a single peer.