Can I say that usually, in WPF, properties Template
contains ContentTemplate
? Or else, whats the difference?
相关问题
- VNC control for WPF application
- Google Test - generate values for template class i
- Template Specialization for Private Types
- WPF Binding from System.Windows.SystemParameters.P
- XAML: Applying styles to nested controls
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
Template's value type is controlTemplate, which defines how control should looks like.
ContentTemplate's value type is dataTemplate, which define the how data should looks like. The similar property is ItemTemplate and CellTemplate.
just have a look at this
http://social.msdn.microsoft.com/Forums/en/wpf/thread/ba37a337-8d62-4343-9155-0a5093467649