Ejemplo n.º 1
0
        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>"));
            }
        }