[NUI] remove StateValueCollection from Selector (#1975)
authorYeongJong Lee <cleanlyj@naver.com>
Wed, 16 Sep 2020 07:44:00 +0000 (16:44 +0900)
committerGitHub <noreply@github.com>
Wed, 16 Sep 2020 07:44:00 +0000 (16:44 +0900)
commita91cd6c156d97521263da26e9cb162aa42281c97
treea1ab9513960ab12ba2550b907b94c83f51631b3e
parentb9a8d6c7499c8a91bce9c7300b1243a7bc015030
[NUI] remove StateValueCollection from Selector (#1975)

State-Value pair is now added to Selector.StateValueList without
duplicate check.

You need to use Selector.StateValueList when custom state-value pair is added
to Selector. and it is now able to add custom state and pre-defined
state in the same initializer.

Before:
```
Selector<string> textSelector = new Selector<string>()
{
    Normal = "Defalut",
    { ControlState.Pressed, "Pressed!" }, // build error
    { ControlState.Focused, "Focused!" }  // build error
};
```

After:
```
Selector<string> textSelector = new Selector<string>()
{
    Normal = "Default!",
    StateValueList =
    {
        { ControlState.Pressed, "Pressed!" },
        { ControlState.Focused, "Focused!" }
    }
};
```

Also, this patch fixes a bunch of CA2227(Collection properties should be read
only) warnings.

Co-authored-by: dongsug-song <35130733+dongsug-song@users.noreply.github.com>
src/Tizen.NUI/src/public/BaseComponents/Style/Selector.cs
src/Tizen.NUI/src/public/BaseComponents/Style/StateValueCollection.cs [deleted file]