[NUI] Add EnableMultiSelection to SelectGroup (#2116)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI.Components / Controls / RadioButtonGroup.cs
index fcf87ad..a028465 100755 (executable)
@@ -42,6 +42,7 @@ namespace Tizen.NUI.Components
         [EditorBrowsable(EditorBrowsableState.Never)]
         public RadioButtonGroup() : base()
         {
+            EnableMultiSelection = false;
         }
 
         /// <summary>
@@ -54,7 +55,7 @@ namespace Tizen.NUI.Components
         [EditorBrowsable(EditorBrowsableState.Never)]
         public RadioButton GetItem(int index)
         {
-            return itemGroup[index] as RadioButton;
+            return ItemGroup[index] as RadioButton;
         }
 
         /// <summary>
@@ -84,30 +85,5 @@ namespace Tizen.NUI.Components
             base.RemoveSelection(radio);
             radio.ItemGroup = null;
         }
-
-        /// <summary>
-        /// Handle user's select action. Turn on check state of selected RadioButton,
-        /// and turn out check state of other RadioButtons in RadioButtonGroup
-        /// </summary>
-        /// <param name="selection">The selection selected by user</param>
-        /// <since_tizen> 6 </since_tizen>
-        /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        protected override void SelectionHandler(SelectButton selection)
-        {
-            RadioButton radio = selection as RadioButton;
-            if (!itemGroup.Contains(radio))
-            {
-                return;
-            }
-
-            foreach (RadioButton btn in itemGroup)
-            {
-                if (btn != null && btn != radio && btn.IsEnabled == true)
-                {
-                    btn.IsSelected = false;
-                }
-            }
-        }
     }
 }