void onAddTabButClick(object sender, MouseButtonEventArgs e) { TabView tv = CrowInterface.FindByName("tabview1") as TabView; if (tv == null) { return; } tv.AddChild(new TabItem() { Caption = "NewTab" }); }
void onAddTabButClick(object sender, MouseButtonEventArgs e) { TabView tv = FindByName("tabview1") as TabView; if (tv == null) { return; } //tv.AddChild (new TabItem (CurrentInterface) { Caption = "NewTab" }); lock (CurrentInterface.UpdateMutex) { tv.AddChild(CurrentInterface.LoadIMLFragment (@"<TabItem Caption='New tab' Background='Blue'><Label/></TabItem>")); } }