[NUI] Add attached bindable property CheckBoxGroup.IsGroupHolder to the View. (#3426)
authorJiyun Yang <ji.yang@samsung.com>
Tue, 17 Aug 2021 08:11:27 +0000 (17:11 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 18 Aug 2021 03:10:44 +0000 (12:10 +0900)
commit967e713fae65ddfb94fdd3032af31aa3f4fea38b
treee33aeaa445318050c6641e91068bdf5c60bf62d9
parentc1ae6088d615c6c1b42daf87428ea106969d77d4
[NUI] Add attached bindable property CheckBoxGroup.IsGroupHolder to the View. (#3426)

In NUI, the parent View that holds checkboxes does not related with CheckBoxGroup.
Which means user must create CheckBoxGroup manually and then add all checkbox to the group.

```
var check1 = new CheckBox();
var check2 = new CheckBox();
var check3 = new CheckBox();

parent.Add(check1);
parent.Add(check2);
parent.Add(check3);

var group = new CheckBoxGroup();
group.Add(check1);
group.Add(check2);
group.Add(check3);
```

In this structure, user can not make a group in XAML code.
This patch introduce attached property to the View for the CheckBoxGroup:
```
<View CheckBoxGroup.IsGroupHolder="True">
  <CheckBox Text="Check1"/>
  <CheckBox Text="Check2"/>
  <CheckBox Text="Check3"/>
</View>
```

And then the user can access check box group from the View using GetCheckBoxGroup(view).

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI.Components/Controls/CheckBoxGroup.cs
src/Tizen.NUI.Components/Controls/RadioButtonGroup.cs
src/Tizen.NUI.Components/Controls/SelectGroup.cs