Поделиться через


TabItem.Header Property

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

Gets or sets the header of the TabItem.

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

Syntax

'Declaration
Public Property Header As Object
public Object Header { get; set; }
<sdk:TabItem>
  <sdk:TabItem.Header>
    singleChild
  </sdk:TabItem.Header>
</sdk:TabItem>
<sdk:TabItem Header="string"/>

XAML Values

  • singleChild
    A single object element that serves as the tab item header.

  • string
    A text string that is processed into TextBlock content and serves as the tab item header.

Property Value

Type: System.Object
The current header of the TabItem.

Remarks

Dependency property identifier field: HeaderProperty

The header is the portion of the TabItem that the user selects to display the TabItem content.

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.