Class TabItem
One tab within a TabControl - Content is the tab's own body, shown only while this item is the TabControl's SelectedItem; Header/Icon describe how this tab's clickable header row looks.
public class TabItem : ContentControl, INotifyPropertyChanging, IBindingTarget, INotifyPropertyChanged, INotifyFocusChanged, IContainerLayout
- Inheritance
-
TabItem
- Implements
- Inherited Members
- Extension Methods
Remarks
A plain data item, not itself realized directly - TabControl builds each header from
Header/Icon via its own default ItemTemplate, wrapped in a
SelectorItem. Disabling a tab is just IsEnabled - no
TabItem-specific plumbing needed.
Properties
Header
Gets or sets the content shown in this tab's clickable header row - typically plain text, but any object TabControl's header template can display.
public object? Header { get; set; }
Property Value
Icon
public Icon? Icon { get; set; }