Class Radio
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
The Radio is a widget that allows for 1 or more options to be displayed, and have the user choose only 1 of them.
public class Radio : Layout, IAccessibleObject
- Inheritance
- Implements
Constructors
View SourceRadio(EvasObject)
Creates and initializes a new instance of the Radio class.
Declaration
public Radio(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | The EvasObject to which the new Radio will be attached as a child. |
Properties
View SourceGroupValue
Sets or gets the value of the radio group.
Declaration
public int GroupValue { get; set; }
Property Value
Type | Description |
---|---|
int |
StateValue
Sets or gets a unique value to each radio button.
Declaration
public int StateValue { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceCreateHandle(EvasObject)
Creates a widget handle.
Declaration
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | Parent EvasObject. |
Returns
Type | Description |
---|---|
System.IntPtr | Handle IntPtr. |
Overrides
View SourceSetGroup(Radio)
Adds this radio to a group of other radio objects.
Declaration
public void SetGroup(Radio group)
Parameters
Type | Name | Description |
---|---|---|
Radio | group | Group which add radio in. |
Events
View SourceValueChanged
ValueChanged will be triggered when value of the radio changes.
Declaration
public event EventHandler ValueChanged
Event Type
Type | Description |
---|---|
System.EventHandler |