[NUI] Fix BindableObject.SetValue to allow Selector types flexibly
authorJiyun Yang <ji.yang@samsung.com>
Tue, 25 May 2021 08:26:10 +0000 (17:26 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 26 May 2021 01:00:09 +0000 (10:00 +0900)
commit67a529a433fb101189bec31e537c7364724b1127
tree3feec24fc015c9d7577d912183c77667679a5294
parent3f0b6ec1afbefff8a7f56bdfa1b150e32dbfdcf7
[NUI] Fix BindableObject.SetValue to allow Selector types flexibly

When the flag isCreateByXaml is true, the BindableObject.SetValue is comparing types strictly.
But some bindable properties, such as BackgroundColor, are designed to allow both types: Color and Selector<Color>.
Hence this patch allows BindableObject.SetValue to take both types.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/public/XamlBinding/BindableProperty.cs