Class SelectButton
Definition
- Namespace:
- Tizen.NUI.Components
- Assembly:
- Tizen.NUI.Components.dll
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.
public class SelectButton : Button, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
- Inheritance
-
objectSelectButton
- Derived
- Implements
-
System.IDisposable
Constructors
View SourceSelectButton()
Creates a new instance of a SelectButton.
Declaration
public SelectButton()
SelectButton(string)
Creates a new instance of a SelectButton with style.
Declaration
public SelectButton(string style)
Parameters
Type | Name | Description |
---|---|---|
string | style | Create SelectButton by special style defined in UX. |
SelectButton(ButtonStyle)
Creates a new instance of a SelectButton with style.
Declaration
public SelectButton(ButtonStyle buttonStyle)
Parameters
Type | Name | Description |
---|---|---|
ButtonStyle | buttonStyle | Create SelectButton by style customized by user. |
Properties
View SourceIndex
Index of selection in selection group. If selection is not in the group, return -1;
Declaration
public int Index { get; }
Property Value
Type | Description |
---|---|
int |
ItemGroup
Item group which is used to manager all SelectButton in it.
Declaration
protected SelectGroup ItemGroup { get; set; }
Property Value
Type | Description |
---|---|
SelectGroup |
Methods
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)
Declaration
protected override bool HandleControlStateOnTouch(Touch touch)
Parameters
Type | Name | Description |
---|---|---|
Touch | touch |
Returns
Type | Description |
---|---|
bool |
Overrides
View SourceOnControlStateChanged(ControlStateChangedEventArgs)
Declaration
protected override void OnControlStateChanged(View.ControlStateChangedEventArgs info)
Parameters
Type | Name | Description |
---|---|---|
View.ControlStateChangedEventArgs | info |
Overrides
View SourceOnInitialize()
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. |
Overrides
View SourceOnSelectedChanged()
Overrides this method if want to handle behavior after pressing return key by user.
Declaration
protected virtual void OnSelectedChanged()
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
public override bool OnTouch(Touch touch)
Parameters
Type | Name | Description |
---|---|---|
Touch | touch | The touch event. |
Returns
Type | Description |
---|---|
bool | True if the event should be consumed. |
Overrides
Events
View SourceSelectedChanged
An event for the item selected signal which can be used to subscribe or unsubscribe the event handler provided by the user.
Declaration
public event EventHandler<SelectedChangedEventArgs> SelectedChanged
Event Type
Type | Description |
---|---|
EventHandler<><SelectedChangedEventArgs> |