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); }
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() }); }