0 out of 1 rated this helpful - Rate this topic

TabItem.HeaderTemplate Property

Silverlight

Gets or sets the template that is used to display the content of the TabItem header.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls (in System.Windows.Controls.dll)
public DataTemplate HeaderTemplate { get; set; }
<sdk:TabItem>
  <sdk:TabItem.HeaderTemplate>
    inlineTemplate
  </sdk:TabItem.HeaderTemplate>
</sdk:TabItem>
<sdk:TabItem HeaderTemplate="resourceReferenceToDataTemplate"/>

XAML Values

inlineTemplate

A single DataTemplate object element. That DataTemplate would typically have multiple child elements that define the visual appearance of the data representation.

resourceReferenceToDataTemplate

A resource reference to an existing DataTemplate from a resources collection. The resource reference must specify the desired DataTemplate by key.

Property Value

Type: System.Windows.DataTemplate
The current template that is used to display TabItem header content.

Dependency property identifier field: HeaderTemplateProperty

Silverlight

Supported in: 5, 4, 3

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ