Class TabButton
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
- API Level:
- 9
TabButton is a class which is used for selecting one content in a TabView.
C#Copypublic class TabButton : SelectButton, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
- Inheritance
- Implements
Constructors
Declaration
C#Copypublic TabButton()
API Level: 9
Declaration
C#Copypublic TabButton(string style)
Parameters
Type | Name | Description |
---|---|---|
String | style | Creates TabButton by special style defined in UX. |
Declaration
C#Copypublic TabButton(TabButtonStyle tabButtonStyle)
Parameters
Type | Name | Description |
---|---|---|
TabButtonStyle | tabButtonStyle | Creates TabButton by style customized by user. |
Properties
Declaration
C#Copypublic string IconURL { get; set; }
Property Value
Type | Description |
---|---|
String |
Declaration
C#Copypublic string Text { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
Declaration
C#Copypublic override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type | Name | Description |
---|---|---|
ViewStyle | viewStyle | The style to apply. |
Overrides
Declaration
C#Copyprotected override ViewStyle CreateViewStyle()
Returns
Type | Description |
---|---|
ViewStyle | The default TabButton style. |
Overrides
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type | Dispose type. |
Overrides
View Source
HandleControlStateOnTouch(Touch)
The touch event handler for ControlState. Please change ControlState value by touch state if needed.
Declaration
C#Copyprotected override bool HandleControlStateOnTouch(Touch touch)
Parameters
Type | Name | Description |
---|---|---|
Touch | touch |
Returns
Type | Description |
---|---|
Boolean |
Overrides
Declaration
C#Copyprotected override void LayoutItems()
Overrides
View Source
OnControlStateChanged(View.ControlStateChangedEventArgs)
Called after the View's ControlStates changed.
Declaration
C#Copyprotected override void OnControlStateChanged(View.ControlStateChangedEventArgs controlStateChangedInfo)
Parameters
Type | Name | Description |
---|---|---|
View.ControlStateChangedEventArgs | controlStateChangedInfo |
Overrides
Declaration
C#Copypublic override void OnInitialize()
Overrides
Declaration
C#Copypublic override bool OnKey(Key key)
Parameters
Type | Name | Description |
---|---|---|
Key | key | The key event. |
Returns
Type | Description |
---|---|
Boolean | True if the key event should be consumed. |