Class TabContent
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
TabContent is a class which contains a set of Views and has one of them selected.
public class TabContent : Control, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectTabContent
- Implements
-
System.IDisposable
Constructors
View SourceTabContent()
Creates a new instance of TabContent.
Declaration
public TabContent()
TabContent(string)
Creates a new instance of TabContent with style.
Declaration
public TabContent(string style)
Parameters
Type | Name | Description |
---|---|---|
string | style | Creates TabContent by special style defined in UX. |
TabContent(ControlStyle)
Creates a new instance of a TabContent with style.
Declaration
public TabContent(ControlStyle style)
Parameters
Type | Name | Description |
---|---|---|
ControlStyle | style | A style applied to the newly created TabContent. |
Properties
View SourceSelectedIndex
The index of the selected view. The indices of views in TabContent are basically the order of adding to TabContent by AddTab(TabButton, View). So a view's index in TabContent can be changed whenever AddTab(TabButton, View) or RemoveTab(int) is called.
Declaration
protected int SelectedIndex { get; set; }
Property Value
Type | Description |
---|---|
int |
ViewCount
Gets the count of views.
Declaration
public int ViewCount { get; }
Property Value
Type | Description |
---|---|
int |
Views
A list of content views.
Declaration
protected IList<View> Views { get; }
Property Value
Type | Description |
---|---|
IList<><View> |
Methods
View SourceAddView(View)
Adds a view to TabContent.
Declaration
protected virtual void AddView(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | A view to be added to TabContent. |
Dispose(DisposeTypes)
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
View SourceGetView(int)
Gets the view at the specified index of TabContent. The indices of views in TabContent are basically the order of adding to TabContent by AddTab(TabButton, View). So a view's index in TabContent can be changed whenever AddTab(TabButton, View) or RemoveTab(int) is called.
Declaration
public View GetView(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of a view in TabContent where the specified view exists. |
Returns
Type | Description |
---|---|
View |
OnInitialize()
Declaration
public override void OnInitialize()
Overrides
View SourceRemoveView(View)
Removes a view from TabContent.
Declaration
protected virtual void RemoveView(View view)
Parameters
Type | Name | Description |
---|---|---|
View | view | A view to be removed from TabContent. |
SelectView(int)
Selects a view at the specified index of TabContent. The indices of views in TabContent are basically the order of adding to TabContent by AddTab(TabButton, View). So a view's index in TabContent can be changed whenever AddTab(TabButton, View) or RemoveTab(int) is called.
Declaration
protected virtual void SelectView(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of a view in TabContent where the view will be selected. |