Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF: Button Template vs ContentTemplate

Can I say that usually, in WPF, properties Template contains ContentTemplate? Or else, whats the difference?

like image 440
Jiew Meng Avatar asked Nov 11 '10 13:11

Jiew Meng


1 Answers

Template defines the appearance of the control. ContentTemplate specifies how the content contained in/displayed by a ContentControl is to be displayed.

Here's a Social.MSDN thread containing an example that shows the difference between the two.

Hope this helps,
Ben

like image 97
Ben Gribaudo Avatar answered Oct 03 '22 23:10

Ben Gribaudo