How can I bind a List collection to TabControl headers in WPF?

后端 未结 4 541
说谎
说谎 2020-12-09 09:02

I can get data into my TabControl but the headers have frames around them and I can\'t slick from tab to tab.

What am I doing wrong with the XAML binding syntax on

4条回答
  •  温柔的废话
    2020-12-09 09:19

    just bind your List to your TabControl as ItemsSource, e.g.

    
    

    this will give you a tab for each object in customer.

提交回复
热议问题