示例#1
0
        private void AddTab1()
        {
            var tab = new TabClass1()
            {
                TabName = "Tab class 1", MyStringContent = "Try drag the tab from left to right"
            };

            //Simply adding items to the collection adds a tab
            this.ItemCollection.Add(tab);
            //and setting SelectedTab to it, will select it.
            this.SelectedTab = tab;
        }
 private void AddTab1()
 {
     var tab = new TabClass1() { TabName = "Tab class 1", MyStringContent = "Try drag the tab from left to right" };
     //Simply adding items to the collection adds a tab
     this.ItemCollection.Add(tab);
     //and setting SelectedTab to it, will select it.
     this.SelectedTab = tab;
 }