Exemple #1
0
        public void AddTabItem(string tabName, UIElement tabContent, TabPopType popStyle = TabPopType.POP_CLICK)
        {
            UITemplate.Controls.TabItem tabItem = new UITemplate.Controls.TabItem();
            tabItem.DisplayName = tabName;
            tabItem.TabControl  = tabContent;
            tabItem.PopType     = popStyle;
            Tabs.Add(tabItem);

            if (_TabList != null)
            {
                AddUITabShowList(tabItem);
            }
        }
        public void AddTabItem(string tabName, UIElement tabContent, TabPopType popStyle = TabPopType.POP_CLICK)
        {
            UITemplate.Controls.TabItem tabItem = new UITemplate.Controls.TabItem();
            tabItem.DisplayName = tabName;
            tabItem.TabControl = tabContent;
            tabItem.PopType = popStyle;
            Tabs.Add(tabItem);

            if (_TabList != null)
            {
                AddUITabShowList(tabItem);
            }
        }