2 * Copyright(c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 using System.ComponentModel;
19 namespace Tizen.NUI.Components
22 /// RadioButton is the Class that describe the control which can be checked, but not cleared by a user.
25 /// RadioButton radio = new RadioButton("C_RadioButton_WhiteText");
26 /// radio.Size = new Size(200, 64, 0);
27 /// radio.Position = new Position(500, posY, 0);
28 /// radio.Text = "RadioButton";
29 /// radio.Focusable = true;
31 /// <since_tizen> 8 </since_tizen>
32 public class RadioButton : SelectButton
34 static RadioButton() { }
37 /// Creates a new instance of a RadioButton.
39 /// <since_tizen> 8 </since_tizen>
40 public RadioButton() : base() { }
42 /// Creates a new instance of a RadioButton with style.
44 /// <param name="style"></param>
45 /// <since_tizen> 8 </since_tizen>
46 public RadioButton(string style) : base(style) { }
48 /// Creates a new instance of a RadioButton with style.
50 /// <param name="buttonStyle"></param>
51 /// <since_tizen> 8 </since_tizen>
52 public RadioButton(ButtonStyle buttonStyle) : base(buttonStyle) { }
55 /// Get RadioButtonGroup to which this selections belong.
57 /// <since_tizen> 6 </since_tizen>
58 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
59 [EditorBrowsable(EditorBrowsableState.Never)]
60 public RadioButtonGroup ItemGroup
64 return base.ItemGroup as RadioButtonGroup;
68 base.ItemGroup = value;
73 /// Set CheckState to true after selecting RadioButton.
75 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
76 [EditorBrowsable(EditorBrowsableState.Never)]
77 protected override void OnSelectedChanged()