[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 f8d9ec2..8b71c24 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);