namespace ElmSharp
{
+ /// <summary>
+ /// The Radio is a widget that allows for 1 or more options to be displayed, and have the user choose only 1 of them.
+ /// </summary>
+ /// <since_tizen> preview </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public class Radio : Layout
{
SmartEvent _changed;
+ /// <summary>
+ /// Creates and initializes a new instance of the Radio class.
+ /// </summary>
+ /// <param name="parent">The EvasObject to which the new Radio will be attached as a child.</param>
+ /// <since_tizen> preview </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public Radio(EvasObject parent) : base(parent)
{
_changed = new SmartEvent(this, this.RealHandle, "changed");
_changed.On += (s, e) => ValueChanged?.Invoke(this, EventArgs.Empty);
}
+ /// <summary>
+ /// ValueChanged will be triggered when value of the radio changes.
+ /// </summary>
+ /// <since_tizen> preview </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public event EventHandler ValueChanged;
+ /// <summary>
+ /// Sets or gets a unique value to each radio button.
+ /// </summary>
+ /// <since_tizen> preview </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public int StateValue
{
get
}
}
+ /// <summary>
+ /// Sets or gets the value of the radio group.
+ /// </summary>
+ /// <since_tizen> preview </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public int GroupValue
{
get
}
}
+ /// <summary>
+ /// Adds this radio to a group of other radio objects.
+ /// </summary>
+ /// <param name="group">Group which add radio in.</param>
+ /// <since_tizen> preview </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
public void SetGroup(Radio group)
{
if (group == null)
Interop.Elementary.elm_radio_group_add(RealHandle, group.RealHandle);
}
+ /// <summary>
+ /// Creates a widget handle.
+ /// </summary>
+ /// <param name="parent">Parent EvasObject.</param>
+ /// <returns>Handle IntPtr.</returns>
+ /// <since_tizen> preview </since_tizen>
+ [Obsolete("This has been deprecated in API12")]
protected override IntPtr CreateHandle(EvasObject parent)
{
IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);