Tabs class
Beep.Skia (core) — class
Material Design 3.0 Tabs component that provides navigation between different views or content sections. Supports both primary and secondary tab variants with smooth animations and proper Material Design 3.0 styling.
Members
| Member | Kind | Description |
|---|---|---|
TabVariant Variant | Property | Gets or sets the variant of the tabs (Primary or Secondary). |
int SelectedIndex | Property | Gets or sets the currently selected tab index. |
TabItem SelectedTab | Property | Gets the currently selected tab item. |
bool IsScrollable | Property | Gets or sets whether the tabs are scrollable. |
IReadOnlyList<TabItem> TabItems | Property | Gets the collection of tab items. |
bool IsHovered | Property | Gets or sets whether the tabs are currently hovered. |
bool IsPressed | Property | Gets or sets whether the tabs are currently pressed. |
event EventHandler<TabSelectionChangedEventArgs> SelectedIndexChanged | Event | Occurs when the selected tab index changes. |
Tabs() | Method | Initializes a new instance of the Tabs class. |
TabItem AddTab(string text) | Method | Adds a new tab item with the specified text. |
TabItem AddTab(string text, string icon) | Method | Adds a new tab item with the specified text and icon. |
bool RemoveTab(TabItem tabItem) | Method | Removes the specified tab item. |
bool RemoveTabAt(int index) | Method | Removes the tab at the specified index. |
void ClearTabs() | Method | Clears all tab items. |