void MainGangMenu_NewGang() { GangEntry ie = new GangEntry(); TabItem ti = new TabItem(); ti.Header = "New Gang"; ti.Content = ie; ie.Visibility = Visibility.Visible; GangTabControl.Items.Add(ti); GangTabControl.SelectedItem = ti; ie.Width = Double.NaN; ie.Height = Double.NaN; }