public void Update_TabData_IsLinked()
        {
            TabData active_and_selected_tab = FindActiveAndSelectedTab();

            if (active_and_selected_tab == null)
            {
                ResetLinkedActive();
                return;
            }

            string id;

            if (active_and_selected_tab.IsSatellite == false)
            {
                id = active_and_selected_tab.UniqueID;

                // A page with satellites is a master-page.
                int count = SatelliteCount(id);

                if (count == 0)
                {
                    ResetLinkedActive();
                    return;
                }
            }
            else
            {
                id = active_and_selected_tab.MasterTabID;
            }

            foreach (FrameData framedata in _frames)
            {
                foreach (TabData tabdata in framedata.Tabs)
                {
                    if (tabdata.MasterTabID != null && tabdata.MasterTabID == id)
                    {
                        tabdata.IsLinkedActive = true;
                    }
                    else if (tabdata.UniqueID == id)
                    {
                        tabdata.IsLinkedActive = true;
                    }
                    else
                    {
                        tabdata.IsLinkedActive = false;
                    }
                }
            }
        }
        public FrameData FindFrameData(TabData find)
        {
            foreach (FrameData framedata in _frames)
            {
                foreach (TabData tabdata in framedata.Tabs)
                {
                    if (tabdata.Equals(find))
                    {
                        return(framedata);
                    }
                }
            }

            return(null);
        }