protected override List <AutomationPeer> GetChildrenCore()
        {
            bool flag = false;

            if (this.m_tabGroupPeer == null || this.m_tabGroupPeer.Owner != this.TabGroupOwner)
            {
                this.m_tabGroupPeer = new TabGroupControlAutomationPeer(this.TabGroupOwner);
                flag = true;
            }
            ViewHeader header = this.TabGroupOwner.Header;

            if (header != null && (this.m_viewHeaderPeer == null || this.m_viewHeaderPeer.Owner != header))
            {
                this.m_viewHeaderPeer = new ViewHeaderAutomationPeer(header);
                flag = true;
            }
            if (flag)
            {
                this.m_childPeers = new List <AutomationPeer>();
                if (this.m_viewHeaderPeer != null)
                {
                    this.m_childPeers.Add((AutomationPeer)this.m_viewHeaderPeer);
                }
                if (this.m_tabGroupPeer != null)
                {
                    this.m_childPeers.Add((AutomationPeer)this.m_tabGroupPeer);
                }
            }
            return(this.m_childPeers);
        }
 internal ViewHeaderAutomationPeer(ViewHeader header)
     : base((FrameworkElement)header)
 {
 }