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

MemberKindDescription
TabVariant VariantPropertyGets or sets the variant of the tabs (Primary or Secondary).
int SelectedIndexPropertyGets or sets the currently selected tab index.
TabItem SelectedTabPropertyGets the currently selected tab item.
bool IsScrollablePropertyGets or sets whether the tabs are scrollable.
IReadOnlyList<TabItem> TabItemsPropertyGets the collection of tab items.
bool IsHoveredPropertyGets or sets whether the tabs are currently hovered.
bool IsPressedPropertyGets or sets whether the tabs are currently pressed.
event EventHandler<TabSelectionChangedEventArgs> SelectedIndexChangedEventOccurs when the selected tab index changes.
Tabs()MethodInitializes a new instance of the Tabs class.
TabItem AddTab(string text)MethodAdds a new tab item with the specified text.
TabItem AddTab(string text, string icon)MethodAdds a new tab item with the specified text and icon.
bool RemoveTab(TabItem tabItem)MethodRemoves the specified tab item.
bool RemoveTabAt(int index)MethodRemoves the tab at the specified index.
void ClearTabs()MethodClears all tab items.

Related