wpf怎样动态绑定TabControl的多个TabItem

2024-12-14 21:33:16
推荐回答(1个)
回答1:

private void button_Click(object sender, RoutedEventArgs e) { TabControlItem tci=new TabControlItem(); tci.Header="Column Test"; tabControl1.Items.Add(tci); }