DataTemplate to populate the content of other DataTemplate
I've like 'base' DataTemplate that contains TabControl with 3 tabs. In 开发者_StackOverflow社区each tab I put empty ContentPresenter. I want to write new DataTemplate for each derived type. In which, I want to populate the all 3 ContentPresenter. How can I reffer to each ContentPresenter of the base template so I can put data inside?
I assume you have set content of each tabitem. If the content objects have different types you just have to make a datatemplate for each of the types.
精彩评论