开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜