WPF TabControl and DataTemplates

后端 未结 5 859
名媛妹妹
名媛妹妹 2021-02-03 11:24

I\'ve got a set of ViewModels that I\'m binding to the ItemsSource property of a TabControl. Let\'s call those ViewModels AViewModel, BViewModel, and CViewModel. Each one of tho

5条回答
  •  眼角桃花
    2021-02-03 12:14

    One way would be to use DataTemplateSelectors and have each one resolve the resource from a separate ResourceDictionary.

提交回复
热议问题