[NUI] Fix issue of SetValue to the property which hasn't DefaultValueCreate delegate
authorFang Xiaohui <xiaohui.fang@samsung.com>
Fri, 2 Jul 2021 07:57:19 +0000 (15:57 +0800)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Mon, 5 Jul 2021 09:51:44 +0000 (18:51 +0900)
src/Tizen.NUI/src/public/XamlBinding/BindableObject.cs

index f8d9ec2ecca8a75b8c7798c44d940b64b7d6e691..8b71c2471333c89f4cb06cc6676e286f3c035a49 100755 (executable)
@@ -266,6 +266,16 @@ namespace Tizen.NUI.Binding
                 {
                     throw new ArgumentNullException(nameof(property));
                 }
+
+                if (null == property.DefaultValueCreator)
+                {
+                    BindablePropertyContext context = GetOrCreateContext(property);
+                    if (null != context)
+                    {
+                        context.Value = value;
+                    }
+                }
+
                 property.PropertyChanged?.Invoke(this, null, value);
 
                 OnPropertyChanged(property.PropertyName);