WPF: Button Template vs. ContentTemplate

Is it possible to say that usually in WPF the Template properties contain a ContentTemplate ? Or otherwise, what is the difference?

+6
button templates wpf
source share
3 answers

Template defines the appearance of the control. The ContentTemplate indicates how the content contained in the / displayed ContentControl will be displayed.

Here's the Social.MSDN thread file, which shows the difference between the two.

Hope this helps,
Ben

+14
source share

The type of the template value is a controlTemplate that determines how the control should look.

The value type of the ContentTemplate is a dataTemplate that determines how the data should look. A similar property is ItemTemplate and CellTemplate.

+1
source share
-one
source share

All Articles