Gets or sets the template to use to display the content of the column header. This is a dependency property.
Assembly: PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Metadata properties set to true
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.
The following example shows how to specify a template to use to display the header of a GridViewColumn. For the complete sample, see ListView That Uses a GridView with Templates Sample.
|How to: Use Templates to Style a ListView That Uses GridView||This example shows how to use the DataTemplate and Style objects to specify the appearance of a ListView control that uses a GridView view mode.|
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.