Ejemplo n.º 1
0
        private void setup_gui(string header, Group group)
        {
            UpControl content = new UpControl();
            ListBox   days    = new ListBox();

            days.Margin            = new Thickness(10, 20, 0, 0);
            days.Width             = 100;
            days.MouseDoubleClick += click_day;
            foreach (string name_day in day_names)
            {
                days.Items.Add(name_day);
            }
            content.add_new(days);
            avm.add_new(content, header);
        }
Ejemplo n.º 2
0
        public void Populate()
        {
            UpControl  web_c   = new UpControl();
            WebBrowser browser = new WebBrowser();

            //browser.Navigate(@"www.google.com");
            browser.HorizontalAlignment = HorizontalAlignment.Stretch;
            browser.VerticalAlignment   = VerticalAlignment.Stretch;
            web_c.add_new(browser);
            // Add A tab to TabControl With a specific header and Content(UserControl)
            Tabs.Add(new ActionTab {
                Header = "Welcome!", Content = new UpControl()
            });
            // Add A tab to TabControl With a specific header and Content(UserControl)
            //Tabs.Add(new ActionTab { Header = "UserControl 2", Content = new TestUserControl() });
        }
Ejemplo n.º 3
0
 public void add_new(UpControl content, string header)
 {
     Tabs.Add(new ActionTab {
         Header = header, Content = content
     });
 }