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> 6 </since_tizen>
32 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
33 [EditorBrowsable(EditorBrowsableState.Never)]
34 public class RadioButton : SelectButton
36 static RadioButton() { }
39 /// Creates a new instance of a RadioButton.
41 /// <since_tizen> 6 </since_tizen>
42 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
43 [EditorBrowsable(EditorBrowsableState.Never)]
44 public RadioButton() : base() { }
46 /// Creates a new instance of a RadioButton with style.
48 /// <param name="style"></param>
49 /// <since_tizen> 6 </since_tizen>
50 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
51 [EditorBrowsable(EditorBrowsableState.Never)]
52 public RadioButton(string style) : base(style) { }
54 /// Creates a new instance of a RadioButton with style.
56 /// <param name="buttonStyle"></param>
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 RadioButton(ButtonStyle buttonStyle) : base(buttonStyle) { }
63 /// Get RadioButtonGroup to which this selections belong.
65 /// <since_tizen> 6 </since_tizen>
66 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
67 [EditorBrowsable(EditorBrowsableState.Never)]
68 public RadioButtonGroup ItemGroup
72 return base.ItemGroup as RadioButtonGroup;
76 base.ItemGroup = value;
81 /// Set CheckState to true after selecting RadioButton.
83 /// <since_tizen> 6 </since_tizen>
84 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
85 [EditorBrowsable(EditorBrowsableState.Never)]
86 protected override void OnSelected()