HeaderTemplate Property

HeaderedItemsControl.HeaderTemplate Property


Gets or sets the template used to display the contents of the control's header.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public DataTemplate HeaderTemplate { get; set; }

Property Value

Type: System.Windows.DataTemplate

A data template used to display a control's header. The default is null.

To customize the heading of the HeaderedItemsControl, set this property to a DataTemplate. For more information on data templates, see Data Templating Overview.

<object HeaderTemplate="{ResourceExtension TemplateResourceKey}"/>


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.

Identifier field


Metadata properties set to true


The following example shows how to create and use a header template to specify the appearance of the header.

.NET Framework
Available since 3.0
Available since 3.0
Windows Phone Silverlight
Available since 7.0
Return to top
© 2015 Microsoft