[NUI] Do not set value of property again when theme is changed.
authorhuayong.xu <huayong.xu@samsung.com>
Tue, 22 Feb 2022 09:18:29 +0000 (17:18 +0800)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 29 Mar 2022 03:10:12 +0000 (12:10 +0900)
commitd049d023e72d320fda805e25f621ee50f10e2af7
tree091d59e6b558504bfd00e982c2f03afe40120aef
parent064269c939da3d5981b8b342bd83f9f091c20a1a
[NUI] Do not set value of property again when theme is changed.

Originally although property value of a view is set, if theme is
changed, the value would be restored to the default value.
This is not expected.
This patch is to check if the value has been set already or not,
if set, do not set the value again.
src/Tizen.NUI/src/public/BaseComponents/Style/ViewStyle.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/ThemeChangeSample.cs [new file with mode: 0755]