I am looking at someone's control template and wherever this template needs to include content, it uses:
<ContentControl>
<ContentPresenter />
</ContentControl>
Why not use just <ContentPresenter />
? Is there any reason why it needs to be wrapp开发者_运维知识库ed in ContentControl?
Thanks
konstantin
Is there any reason why it needs to be wrapped in ContentControl?
It doesn't need to. Doing this is useless, you only need to use <ContentPresenter />
in a ControlTemplate
精彩评论