Class TabPage
- Namespace
- SharpConsoleUI.Controls
- Assembly
- SharpConsoleUI.dll
Represents a single tab page with a title and content.
public class TabPage
- Inheritance
-
TabPage
- Inherited Members
- Extension Methods
Properties
Content
Gets or sets the control displayed when this tab is active. Prefer SetTabContent(int, IWindowControl) for a live swap (it disposes the old content and wires the new content's container); assigning here invalidates the owner but does NOT re-wire the container.
public IWindowControl Content { get; set; }
Property Value
IsClosable
Gets or sets whether this tab can be closed by the user. Changing it re-lays out the header (the close affordance adds a column) and invalidates the owning control automatically.
public bool IsClosable { get; set; }
Property Value
Tag
Gets or sets custom metadata associated with this tab. Not rendered; no invalidation.
public object? Tag { get; set; }
Property Value
Title
Gets or sets the title displayed in the tab header. Changing it re-lays out the header (title width changes) and invalidates the owning control automatically.
public string Title { get; set; }
Property Value
Tooltip
Gets or sets the tooltip text shown when hovering over the tab header. Future feature: tooltip display on hover. Not currently rendered; no invalidation.
public string? Tooltip { get; set; }