Class Radio

Definition

Namespace:
ElmSharp
Assembly:
ElmSharp.dll
API Level:
preview

The Radio is a widget that allows for 1 or more options to be displayed, and have the user choose only 1 of them.

C#
Copy
public class Radio : Layout, IAccessibleObject
Inheritance
Implements

Constructors

View Source

Radio(EvasObject)

Creates and initializes a new instance of the Radio class.

Declaration
C#
Copy
public Radio(EvasObject parent)
Parameters
Type Name Description
EvasObject parent

The EvasObject to which the new Radio will be attached as a child.

API Level: preview

Properties

View Source

GroupValue

Sets or gets the value of the radio group.

Declaration
C#
Copy
public int GroupValue { get; set; }
Property Value
Type Description
System.Int32
API Level: preview
View Source

StateValue

Sets or gets a unique value to each radio button.

Declaration
C#
Copy
public int StateValue { get; set; }
Property Value
Type Description
System.Int32
API Level: preview

Methods

View Source

CreateHandle(EvasObject)

Creates a widget handle.

Declaration
C#
Copy
protected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type Name Description
EvasObject parent

Parent EvasObject.

Returns
Type Description
System.IntPtr

Handle IntPtr.

Overrides
API Level: preview
View Source

SetGroup(Radio)

Adds this radio to a group of other radio objects.

Declaration
C#
Copy
public void SetGroup(Radio group)
Parameters
Type Name Description
Radio group

Group which add radio in.

API Level: preview

Events

View Source

ValueChanged

ValueChanged will be triggered when value of the radio changes.

Declaration
C#
Copy
public event EventHandler ValueChanged
Event Type
Type Description
System.EventHandler
API Level: preview

Implements

Extension Methods