Class TabBar
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
TabBar is a class which contains a set of TabButtons and has one of them selected.
public class TabBar : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectTabBar
- Implements
-
System.IDisposable
Constructors
View SourceTabBar()
Creates a new instance of TabBar.
Declaration
public TabBar()
TabBar(string)
Creates a new instance of TabBar with style.
Declaration
public TabBar(string style)
Parameters
Type | Name | Description |
---|---|---|
string | style | Creates TabBar by special style defined in UX. |
TabBar(ControlStyle)
Creates a new instance of a TabBar with style.
Declaration
public TabBar(ControlStyle style)
Parameters
Type | Name | Description |
---|---|---|
ControlStyle | style | A style applied to the newly created TabBar. |
Properties
View SourceSelectedIndex
The index of the selected tab button. The indices of tab buttons in TabBar are basically the order of adding to TabBar by AddTab(TabButton, View). So a tab button's index in TabBar can be changed whenever AddTab(TabButton, View) or RemoveTab(int) is called.
Declaration
protected int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
int |
TabButtonCount
Gets the count of tab buttons.
Declaration
public int TabButtonCount { get; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceAddTabButton(TabButton)
Adds a tab button to TabBar.
Declaration
protected virtual void AddTabButton(TabButton tabButton)
Parameters
Type | Name | Description |
---|---|---|
TabButton | tabButton | A tab button to be added to TabBar. |
Dispose(DisposeTypes)
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
View SourceGetTabButton(int)
Gets the tab button at the specified index of TabBar. The indices of tab buttons in TabBar are basically the order of adding to TabBar by AddTab(TabButton, View). So a tab button's index in TabBar can be changed whenever AddTab(TabButton, View) or RemoveTab(int) is called.
Declaration
public TabButton GetTabButton(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of tab button in TabBar where the specified tab button exists. |
Returns
Type | Description |
---|---|
TabButton |
OnInitialize()
Declaration
public override void OnInitialize()
Overrides
View SourceRemoveTabButton(TabButton)
Removes a tab button from TabBar.
Declaration
protected virtual void RemoveTabButton(TabButton tabButton)
Parameters
Type | Name | Description |
---|---|---|
TabButton | tabButton | A tab button to be removed from TabBar. |
Events
View SourceTabButtonSelected
An event for the tab button selected signal which can be used to subscribe or unsubscribe the event handler provided by a user.
Declaration
public event EventHandler<TabButtonSelectedEventArgs> TabButtonSelected
Event Type
Type | Description |
---|---|
EventHandler<><TabButtonSelectedEventArgs> |