Gets or sets the template to use to display the content of the column header.
Assembly: PresentationFramework (in PresentationFramework.dll)
If both the HeaderTemplateSelector property and the property are set, the property takes precedence.
Properties that define the content, layout, and style of a column header are found on many related classes, and some of these properties have functionality that is similar or the same. For more information, see GridView Column Header Styles and Templates Overview.
One of the following: StaticResource, or DynamicResource. See XAML Resources.
The key that identifies the template being requested. The key refers to an existing resource in a ResourceDictionary.
Property element syntax is technically possible, but not recommended. See Inline Styles and Templates. A binding reference using or is also possible, but uncommon.
The following example shows how to specify a template to use to display the header of a GridViewColumn.
<DataTemplate x:Key="myHeaderTemplate"> <DockPanel> <CheckBox/> <TextBlock FontSize="16" Foreground="DarkBlue"> <TextBlock.Text> <Binding/> </TextBlock.Text> </TextBlock> </DockPanel> </DataTemplate>
Available since 3.0