Partilhar via


HeaderedItemsControl.HeaderTemplate Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a data template that is used to display the contents of the control's Header.

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

Syntax

'Declaration
Public Property HeaderTemplate As DataTemplate
public DataTemplate HeaderTemplate { get; set; }
<sdk:HeaderedItemsControl HeaderTemplate="templateReference"/>

XAML Values

Property Value

Type: System.Windows.DataTemplate
Gets or sets a data template that is used to display the contents of the control's header. The default is nulla null reference (Nothing in Visual Basic).

Remarks

XAML usage for properties of HeaderedItemsControl also exists on TreeView. In this case, the object element you set the properties on is sdk:TreeView rather than sdk:HeaderedItemsControl.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.