[NUI] Fix Switch bugs (#1984)
authorJiyun Yang <ji.yang@samsung.com>
Mon, 7 Sep 2020 11:30:58 +0000 (20:30 +0900)
committerGitHub <noreply@github.com>
Mon, 7 Sep 2020 11:30:58 +0000 (20:30 +0900)
commita4083a71c27573ea18a08dfa746615d8d08d7cbb
treec266643649fddd42c5a69dbcd818d64508863430
parentfa385fa4989a42fe6c19aced102e4156a2a8016c
[NUI] Fix Switch bugs (#1984)

* Change ControlState propagation sequence
* Remove setting border property in default switch style

This fixes an error of the following code,

```
protected override void OnCreate()
{
  //...
  var button = new Switch();
  button.SelectedChanged += OnSelected;
  root.Add(button);
}

void OnSelected(object target, SelectedChangedEventArgs args)
{
  if (args.IsSelected)
  {
     (target as Switch).IsSelected = false;
  }
}
```

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI.Components/Controls/Extension/SlidingSwitchExtension.cs
src/Tizen.NUI.Components/res/Theme/Tizen.NUI.Components_Tizen.NUI.Theme.Common.xaml
src/Tizen.NUI/src/public/BaseComponents/View.cs