Esempio n. 1
0
        void onAddTabButClick(object sender, MouseButtonEventArgs e)
        {
            TabView tv = CrowInterface.FindByName("tabview1") as TabView;

            if (tv == null)
            {
                return;
            }
            tv.AddChild(new TabItem()
            {
                Caption = "NewTab"
            });
        }
Esempio n. 2
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>"));
            }
        }