Show / Hide Table of Contents

    Class Radio

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

    Inheritance
    System.Object
    Radio
    Namespace: Tizen.Wearable.CircularUI.Forms
    Assembly: Tizen.Wearable.CircularUI.Forms.dll
    Syntax
    [Obsolete("Radio is obsolete as of version 1.5.0. Please use Xamarin.Forms.RadioButton instead.")]
    public class Radio : View
    Examples
    var radio1 = new Radio
    {
        GroupName = "SoundMode",
        IsSelected = true,
        Value = "sound"
    }
    
    var radio2 = new Radio
    {
        GroupName = "SoundMode",
        IsSelected = false,
        Value = "vibrate"
    }
    
    radio1.Selected += (s,e) =>
    {
        Console.WriteLine($"radio1 selected! value:{e.Value}");
    };
    
    radio2.Selected += (s,e) =>
    {
         Console.WriteLine($"radio2 selected! value:{e.Value}");
    };

    Fields

    ColorProperty

    BindableProperty. Identifies the Color bindable property.

    Declaration
    public static readonly BindableProperty ColorProperty
    Field Value
    Type Description
    BindableProperty

    GroupNameProperty

    BindableProperty. Identifies the GroupName bindable property.

    Declaration
    public static readonly BindableProperty GroupNameProperty
    Field Value
    Type Description
    BindableProperty

    IsSelectedProperty

    BindableProperty. Identifies the IsSelected bindable property.

    Declaration
    public static readonly BindableProperty IsSelectedProperty
    Field Value
    Type Description
    BindableProperty

    ValueProperty

    BindableProperty. Identifies the Value bindable property.

    Declaration
    public static readonly BindableProperty ValueProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    Color

    Gets or sets a color value of Radio.

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    Color

    GroupName

    Gets or sets the name that specifies which Radio controls are mutually exclusive. It can be set to null.

    Declaration
    public string GroupName { get; set; }
    Property Value
    Type Description
    System.String

    IsSelected

    Gets or sets a boolean value that indicates whether this Radio is selected.

    Declaration
    public bool IsSelected { get; set; }
    Property Value
    Type Description
    System.Boolean

    Value

    Gets or sets the value of the Radio. This is a bindable property.

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    System.String

    Events

    Selected

    Occurs when the Radio selection was changed.

    Declaration
    public event EventHandler<SelectedEventArgs> Selected
    Event Type
    Type Description
    System.EventHandler<SelectedEventArgs>
    Back to top Copyright © 2018-2019 Samsung
    Generated by DocFX