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

2024-12-13 21:34:25
推荐回答(1个)
回答1:

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