Table of Contents

Class TabItem

Namespace
Icy.UI.Controls
Assembly
IcyUI.dll

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

object

Icon

Gets or sets a small glyph shown alongside Header in this tab's header row, or null for none.

public Icon? Icon { get; set; }

Property Value

Icon