Exemple #1
0
 public void InsertTab(int index, TabPage page)
 {
     if (index == -1)
     {
         Control.Items.Add(page.ControlObject);
     }
     else
     {
         Control.Items.Insert(index, page.ControlObject);
     }
     if (Widget.Loaded)
     {
         page.GetWpfFrameworkElement()?.SetScale(XScale, YScale);
     }
     if (Control.Items.Count == 1)
     {
         SelectedIndex = 0;
     }
 }