Class TabButton
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
TabButton is a class which is used for selecting one content in a TabView.
public class TabButton : SelectButton, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectTabButton
- Implements
-
System.IDisposable
Constructors
View SourceTabButton()
Creates a new instance of TabButton.
Declaration
public TabButton()
TabButton(string)
Creates a new instance of TabButton.
Declaration
public TabButton(string style)
Parameters
| Type | Name | Description |
|---|---|---|
| string | style | Creates TabButton by special style defined in UX. |
TabButton(TabButtonStyle)
Creates a new instance of TabButton.
Declaration
public TabButton(TabButtonStyle tabButtonStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| TabButtonStyle | tabButtonStyle | Creates TabButton by style customized by user. |
Properties
View SourceIconURL
Declaration
public string IconURL { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Text
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceApplyStyle(ViewStyle)
Apply style to button.
Declaration
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| ViewStyle | viewStyle | The style to apply. |
Overrides
View SourceCreateViewStyle()
Gets TabButton style.
Declaration
protected override ViewStyle CreateViewStyle()
Returns
| Type | Description |
|---|---|
| ViewStyle | The default TabButton style. |
Overrides
View SourceDispose(DisposeTypes)
Dispose SelectButton and all children on it.
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
| Type | Name | Description |
|---|---|---|
| DisposeTypes | type | Dispose type. |
Overrides
View SourceHandleControlStateOnTouch(Touch)
The touch event handler for ControlState. Please change ControlState value by touch state if needed.
Declaration
protected override bool HandleControlStateOnTouch(Touch touch)
Parameters
| Type | Name | Description |
|---|---|---|
| Touch | touch |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
View SourceLayoutItems()
Put sub items (e.g. buttonText, buttonIcon) to the right place.
Declaration
protected override void LayoutItems()
Overrides
View SourceOnControlStateChanged(ControlStateChangedEventArgs)
Called after the View's ControlStates changed.
Declaration
protected override void OnControlStateChanged(View.ControlStateChangedEventArgs controlStateChangedInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| View.ControlStateChangedEventArgs | controlStateChangedInfo |
Overrides
View SourceOnInitialize()
Initializes AT-SPI object.
Declaration
public override void OnInitialize()
Overrides
View SourceOnKey(Key)
Called after a key event is received by the view that has had its focus set.
Declaration
public override bool OnKey(Key key)
Parameters
| Type | Name | Description |
|---|---|---|
| Key | key | The key event. |
Returns
| Type | Description |
|---|---|
| bool | True if the key event should be consumed. |