开发者

DataTemplate to populate the content of other DataTemplate

开发者 https://www.devze.com 2023-03-08 09:43 出处:网络
I\'ve like \'base\' DataTemplate that contains TabControl with 3 tabs. In 开发者_StackOverflow社区each tab I put empty ContentPresenter.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消