I\'m currently working on something that is probably done in plenty of examples out there. But after some searching I can\'t find anything.
I\'m working with WPF tab
Not tested, but following should work:
int idx = tabControl1.Items.Count; tabControl1.SelectedIndex = idx - 1; TabItem ti = new TabItem(); tabControl1.Items.Insert(tabControl1.Items.IndexOf(tabControl1.Items.Last()), ti);