Represents a WPF control which can contain a single piece of content that can be of any type.
Questions tagged [contentcontrol]
331 questions
229
votes
6 answers
What's the difference between ContentControl and ContentPresenter?
I'm not sure when I should use ContentPresenter instead of ContentControl (and vice-versa). At the moment, I'm using ContentControl pretty much all the time in my DataTemplates. When would ContentPresenter be a better choice? and why?

Wilka
- 28,701
- 14
- 75
- 97
49
votes
3 answers
Display a default DataTemplate in a ContentControl when its content is null or empty?
I would think this is possible, but the obvious way isn't working.
Currently, I'm doing this: