Class SelectButton

Definition

Namespace:
Tizen.NUI.Components
Assembly:
Tizen.NUI.Components.dll
API Level:
6

SelectButton is base class of CheckBox and RadioButton. It can be used as selector and add into group for single-choice or multiple-choice . User can handle Navigation by adding/inserting/deleting NavigationItem.

C#
Copy
public class SelectButton : Button, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Derived
Implements

Constructors

View Source

SelectButton()

Creates a new instance of a SelectButton.

Declaration
C#
Copy
public SelectButton()
API Level: 6
View Source

SelectButton(String)

Creates a new instance of a SelectButton with style.

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

Create SelectButton by special style defined in UX.

API Level: 6
View Source

SelectButton(ButtonStyle)

Creates a new instance of a SelectButton with style.

Declaration
C#
Copy
public SelectButton(ButtonStyle buttonStyle)
Parameters
Type Name Description
ButtonStyle buttonStyle

Create SelectButton by style customized by user.

API Level: 6

Properties

View Source

Index

Index of selection in selection group. If selection is not in the group, return -1;

Declaration
C#
Copy
public int Index { get; }
Property Value
Type Description
Int32
API Level: 6
View Source

ItemGroup

Item group which is used to manager all SelectButton in it.

Declaration
C#
Copy
protected SelectGroup ItemGroup { get; set; }
Property Value
Type Description
SelectGroup
API Level: 6

Methods

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
API Level: 6
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

OnControlStateChanged(View.ControlStateChangedEventArgs)

Called after the View's ControlStates changed.

Declaration
C#
Copy
protected override void OnControlStateChanged(View.ControlStateChangedEventArgs info)
Parameters
Type Name Description
View.ControlStateChangedEventArgs info
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
API Level: 6
View Source

OnSelectedChanged()

Overrides this method if want to handle behavior after pressing return key by user.

Declaration
C#
Copy
protected virtual void OnSelectedChanged()
View Source

OnTouch(Touch)

Called after a touch event is received by the owning view.
CustomViewBehaviour.REQUIRES_TOUCH_EVENTS must be enabled during construction. See CustomView(ViewWrapperImpl.CustomViewBehaviour behaviour).

Declaration
C#
Copy
public override bool OnTouch(Touch touch)
Parameters
Type Name Description
Touch touch

The touch event.

Returns
Type Description
Boolean

True if the event should be consumed.

Overrides
API Level: 6

Events

View Source

SelectedChanged

An event for the item selected signal which can be used to subscribe or unsubscribe the event handler provided by the user.

Declaration
C#
Copy
public event EventHandler<SelectedChangedEventArgs> SelectedChanged
Event Type
Type Description
EventHandler<SelectedChangedEventArgs>

Implements

Extension Methods