Class TabBar
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 9
TabBar is a class which contains a set of TabButtons and has one of them selected.
C#Copypublic class TabBar : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic TabBar()
API Level: 9
Declaration
C#Copypublic TabBar(string style)
Parameters
Type | Name | Description |
---|---|---|
String | style | Creates TabBar by special style defined in UX. |
Declaration
C#Copypublic TabBar(ControlStyle style)
Parameters
Type | Name | Description |
---|---|---|
ControlStyle | style | A style applied to the newly created TabBar. |
Properties
SelectedIndex
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(Int32) is called.
Declaration
C#Copyprotected int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
Declaration
C#Copypublic int TabButtonCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
API Level: 9
Methods
Declaration
C#Copyprotected virtual void AddTabButton(TabButton tabButton)
Parameters
Type | Name | Description |
---|---|---|
TabButton | tabButton | A tab button to be added to TabBar. |
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | Dispose type. |
Overrides
GetTabButton(Int32)
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(Int32) is called.
Declaration
C#Copypublic TabButton GetTabButton(int index)
Parameters
Type | Name | Description |
---|---|---|
Int32 | index | The index of tab button in TabBar where the specified tab button exists. |
Returns
Type | Description |
---|---|
TabButton |
API Level: 9
Declaration
C#Copypublic override void OnInitialize()
Overrides
Declaration
C#Copyprotected virtual void RemoveTabButton(TabButton tabButton)
Parameters
Type | Name | Description |
---|---|---|
TabButton | tabButton | A tab button to be removed from TabBar. |
Events
TabButtonSelected
An event for the tab button selected signal which can be used to subscribe or unsubscribe the event handler provided by a user.
Declaration
C#Copypublic event EventHandler<TabButtonSelectedEventArgs> TabButtonSelected
Event Type
Type | Description |
---|---|
EventHandler<TabButtonSelectedEventArgs> |