Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
The TabItem represents an individual tab within a TabControl. Each TabItem contains both the tab header and its associated content that displays when you select the tab.
Styles and templates
This section describes the styles and templates for the TabItem control. You can modify the default ControlTemplate to give the control a unique appearance. For more information, see Styles and templates overview and Create a template for a control.
Content property
The TabItem uses the Content property as its content property. This property contains the content that displays when you select the tab.
Parts
The TabItem control doesn't have any named parts.
Visual states
The following table lists the visual states for the TabItem control.
| VisualState Name | VisualStateGroup Name | Description |
|---|---|---|
| Normal | CommonStates | The default state. |
| MouseOver | CommonStates | The mouse pointer is positioned over the control. |
| Disabled | CommonStates | The control is disabled. |
| Focused | FocusStates | The control has focus. |
| Unfocused | FocusStates | The control does not have focus. |
| Selected | SelectionStates | The control is selected. |
| Unselected | SelectionStates | The control is not selected. |
| Valid | ValidationStates | The control uses the Validation class and the Validation.HasError attached property is false. |
| InvalidFocused | ValidationStates | The Validation.HasError attached property is true has the control has focus. |
| InvalidUnfocused | ValidationStates | The Validation.HasError attached property is true has the control does not have focus. |
See also
.NET Desktop feedback