Table of Contents

Class SimpleTabControlView

Namespace
Alternet.Maui
Assembly
Alternet.UI.Maui.dll

Represents a simple tab control view.

public class SimpleTabControlView : BaseContentView, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout, IRaiseSystemColorsChanged
Inheritance
SimpleTabControlView
Implements

Constructors

SimpleTabControlView()

Initializes a new instance of the SimpleTabControlView class.

Fields

DefaultTabIsBoldWhenSelected

Indicates whether the tab is displayed in bold when selected.

DefaultTabStyle

Gets or sets the default style applied to the tabs.

Properties

Content

Gets or sets the content of the tab control view. You can use this property to set the active tab contents. Normally, it is updated automatically when a new tab is selected with the control that was specified when the tab was added.

Header

Gets the header of the tab control view.

SelectedIndex

Gets or sets the index of the selected tab.

SelectedTab

Gets or sets the selected tab control item.

TabCount

Gets the number of tabs in the tab control view.

Tabs

Gets the collection of tabs in the tab control view.

Methods

Add(string?, Func<View>?, string?, SvgImage?)

Adds a new tab to the tab control view.

GetTab(int)

Gets the tab at the specified index.

GetTabButton(int)

Gets the tab button at the specified index.

RemoveTab(TabControlItem?)

Removes the specified tab control item.

SelectFirstTab()

Selects the first tab.

SelectTab(TabControlItem?)

Selects the specified tab control item.

SelectTab(int)

Selects the tab at the specified index.

Events

SelectedTabChanged

Occurs when the selected tab changes.