Ejemplo n.º 1
0
        protected override void AddTabItem(TabItem <Channel> item, bool addToDropdown = true)
        {
            if (selectorTab.Depth < float.MaxValue)
            {
                // performTabSort might've made selectorTab's position wonky, fix it
                TabContainer.ChangeChildDepth(selectorTab, float.MaxValue);
            }

            base.AddTabItem(item, addToDropdown);

            if (SelectedTab == null)
            {
                SelectTab(item);
            }
        }