/// <summary> /// Adds the content for the container. /// </summary> private void CreateControls() { TreeTabIGroupGrid g = new TreeTabIGroupGrid(); this.container = new TabControl(); this.container.Name = "TabContainer"; g.Children.Add(this.container); this.Content = g; }
private void btnAddTab3_Click(object sender, RoutedEventArgs e) { TreeTabItemGroup tParent = (TreeTabItemGroup) this.treeTab.GetTabItemById("two"); TreeTabItem tItem = this.treeTab.AddTabItem("tree", "Child Group 1", true, TreeItem.TREEITEM_TYPE.MAIN, tParent); TreeTabIGroupGrid grid = new TreeTabIGroupGrid(); grid.Children.Add(new Example()); this.treeTab.SetTabContent(tItem, grid); this.treeTab.AddTabItem("four", "Child Group 2", true, TreeItem.TREEITEM_TYPE.MAIN, tParent); this.treeTab.AddTabItem("five", "Child Group 3", true, TreeItem.TREEITEM_TYPE.MAIN, tParent); }