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

Constructors

View Source

TabButton()

Creates a new instance of TabButton.

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

TabButton(String)

Creates a new instance of TabButton.

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

Creates TabButton by special style defined in UX.

View Source

TabButton(TabButtonStyle)

Creates a new instance of TabButton.

Declaration
C#
Copy
public TabButton(TabButtonStyle tabButtonStyle)
Parameters
Type Name Description
TabButtonStyle tabButtonStyle

Creates TabButton by style customized by user.

Properties

View Source

IconURL

Declaration
C#
Copy
public string IconURL { get; set; }
Property Value
Type Description
String
Declaration
C#
Copy
public string Text { get; set; }
Property Value
Type Description
String

Methods

View Source

ApplyStyle(ViewStyle)

Apply style to button.

Declaration
C#
Copy
public override void ApplyStyle(ViewStyle viewStyle)
Parameters
Type Name Description
ViewStyle viewStyle

The style to apply.

Overrides
View Source

CreateViewStyle()

Gets TabButton style.

Declaration
C#
Copy
protected override ViewStyle CreateViewStyle()
Returns
Type Description
ViewStyle

The default TabButton style.

Overrides
View Source

Dispose(DisposeTypes)

Dispose SelectButton 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

HandleControlStateOnTouch(Touch)

The touch event handler for ControlState. Please change ControlState value by touch state if needed.

Declaration
C#
Copy
protected override bool HandleControlStateOnTouch(Touch touch)
Parameters
Type Name Description
Touch touch
Returns
Type Description
Boolean
Overrides
View Source

LayoutItems()

Put sub items (e.g. buttonText, buttonIcon) to the right place.

Declaration
C#
Copy
protected override void LayoutItems()
Overrides
View Source

OnControlStateChanged(View.ControlStateChangedEventArgs)

Called after the View's ControlStates changed.

Declaration
C#
Copy
protected override void OnControlStateChanged(View.ControlStateChangedEventArgs controlStateChangedInfo)
Parameters
Type Name Description
View.ControlStateChangedEventArgs controlStateChangedInfo
Overrides
View Source

OnInitialize()

Initializes AT-SPI object.

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

OnKey(Key)

Called after a key event is received by the view that has had its focus set.

Declaration
C#
Copy
public 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.

Overrides

Implements

Extension Methods