tags:

views:

36

answers:

1

hello,

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 wrapped in ContentControl?

Thanks

konstantin

+1  A: 

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

Thomas Levesque
i thought so, thanks
akonsu