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#
Copy
public class TabBar : Control, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

TabBar()

Creates a new instance of TabBar.

Declaration
C#
Copy
public TabBar()
API Level: 9
View Source

TabBar(String)

Creates a new instance of TabBar with style.

Declaration
C#
Copy
public TabBar(string style)
Parameters
Type Name Description
String style

Creates TabBar by special style defined in UX.

View Source

TabBar(ControlStyle)

Creates a new instance of a TabBar with style.

Declaration
C#
Copy
public TabBar(ControlStyle style)
Parameters
Type Name Description
ControlStyle style

A style applied to the newly created TabBar.

Properties

View Source

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#
Copy
protected int SelectedIndex { get; set; }
Property Value
Type Description
Int32
View Source

TabButtonCount

Gets the count of tab buttons.

Declaration
C#
Copy
public int TabButtonCount { get; }
Property Value
Type Description
Int32
API Level: 9

Methods

View Source

AddTabButton(TabButton)

Adds a tab button to TabBar.

Declaration
C#
Copy
protected virtual void AddTabButton(TabButton tabButton)
Parameters
Type Name Description
TabButton tabButton

A tab button to be added to TabBar.

View Source

Dispose(DisposeTypes)

Dispose Control and all children on it.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type

Dispose type.

Overrides
View Source

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#
Copy
public 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
View Source

OnInitialize()

Overrides the parent method.

Declaration
C#
Copy
public override void OnInitialize()
Overrides
View Source

RemoveTabButton(TabButton)

Removes a tab button from TabBar.

Declaration
C#
Copy
protected virtual void RemoveTabButton(TabButton tabButton)
Parameters
Type Name Description
TabButton tabButton

A tab button to be removed from TabBar.

Events

View Source

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#
Copy
public event EventHandler<TabButtonSelectedEventArgs> TabButtonSelected
Event Type
Type Description
EventHandler<TabButtonSelectedEventArgs>

Implements

Extension Methods