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
    object
    EvasObject
    AccessibleObject
    Widget
    Container
    Layout
    Radio
    Implements
    IAccessibleObject

    Constructors

    View Source

    Radio(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 Source

    GroupValue

    Sets or gets the value of the radio group.

    Declaration
    public int GroupValue { get; set; }
    Property Value
    Type Description
    int
    View Source

    StateValue

    Sets or gets a unique value to each radio button.

    Declaration
    public int StateValue { get; set; }
    Property Value
    Type Description
    int

    Methods

    View Source

    CreateHandle(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
    Layout.CreateHandle(EvasObject)
    View Source

    SetGroup(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 Source

    ValueChanged

    ValueChanged will be triggered when value of the radio changes.

    Declaration
    public event EventHandler ValueChanged
    Event Type
    Type Description
    System.EventHandler

    Implements

    IAccessibleObject

    Extension Methods

    RotaryEventExtensions.Activate(EvasObject)
    RotaryEventExtensions.AddRotaryEventHandler(EvasObject, RotaryEventHandler)
    RotaryEventExtensions.Deactivate(EvasObject)
    RotaryEventExtensions.RemoveRotaryEventHandler(EvasObject, RotaryEventHandler)
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX